* ext/socket/getaddrinfo.c (freeaddrinfo, get_name): fixed typo.

* ext/tk/tcltklib.c (tcl_eval, tcl_global_eva): ditto.

* ext/zlib/zlib.c (rscheck): constified.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@10358 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
usa 2006-06-21 08:32:22 +00:00
parent 7dd70df4b0
commit bc6a1d8dcf
4 changed files with 12 additions and 5 deletions

View File

@ -1,3 +1,11 @@
Wed Jun 21 17:29:57 2006 NAKAMURA Usaku <usa@ruby-lang.org>
* ext/socket/getaddrinfo.c (freeaddrinfo, get_name): fixed typo.
* ext/tk/tcltklib.c (tcl_eval, tcl_global_eva): ditto.
* ext/zlib/zlib.c (rscheck): constified.
Wed Jun 21 17:18:55 2006 Yukihiro Matsumoto <matz@ruby-lang.org> Wed Jun 21 17:18:55 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
* lib/pp.rb (PP::PPMethods::seplist): should have preserved * lib/pp.rb (PP::PPMethods::seplist): should have preserved

View File

@ -207,7 +207,6 @@ gai_strerror(int ecode)
void void
freeaddrinfo(struct addrinfo *ai) freeaddrinfo(struct addrinfo *ai)
struct addrinfo *ai;
{ {
struct addrinfo *next; struct addrinfo *next;
@ -530,7 +529,7 @@ getaddrinfo(const char *hostname, const char *servname, const struct addrinfo *h
} }
static int static int
get_name(const char *addr, const struct aft *afd, struct addrinfo **res, char *numaddr, struct addrinfo *pai, int port0) get_name(const char *addr, const struct afd *afd, struct addrinfo **res, char *numaddr, struct addrinfo *pai, int port0)
{ {
u_short port = port0 & 0xffff; u_short port = port0 & 0xffff;
struct hostent *hp; struct hostent *hp;

View File

@ -124,7 +124,7 @@ static VALUE tk_funcall _((VALUE(), int, VALUE*, VALUE));
/* safe Tcl_Eval and Tcl_GlobalEval */ /* safe Tcl_Eval and Tcl_GlobalEval */
static int static int
tcl_eval(Tcp_Interp interp, const char *cmd) tcl_eval(Tcl_Interp *interp, const char *cmd)
{ {
char *buf = strdup(cmd); char *buf = strdup(cmd);
const int ret = Tcl_Eval(interp, buf); const int ret = Tcl_Eval(interp, buf);
@ -136,7 +136,7 @@ tcl_eval(Tcp_Interp interp, const char *cmd)
#define Tcl_Eval tcl_eval #define Tcl_Eval tcl_eval
static int static int
tcl_global_eval(Tcp_Interp *interp, const char *cmd) tcl_global_eval(Tcl_Interp *interp, const char *cmd)
{ {
char *buf = strdup(cmd); char *buf = strdup(cmd);
const int ret = Tcl_GlobalEval(interp, buf); const int ret = Tcl_GlobalEval(interp, buf);

View File

@ -2983,7 +2983,7 @@ gzreader_skip_linebreaks(struct gzfile *gz)
} }
static void static void
rscheck(char *rsptr, long rslen, VALUE rs) rscheck(const char *rsptr, long rslen, VALUE rs)
{ {
if (RSTRING(rs)->ptr != rsptr && RSTRING(rs)->len != rslen) if (RSTRING(rs)->ptr != rsptr && RSTRING(rs)->len != rslen)
rb_raise(rb_eRuntimeError, "rs modified"); rb_raise(rb_eRuntimeError, "rs modified");