* 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:
parent
7dd70df4b0
commit
bc6a1d8dcf
@ -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>
|
||||
|
||||
* lib/pp.rb (PP::PPMethods::seplist): should have preserved
|
||||
|
@ -207,7 +207,6 @@ gai_strerror(int ecode)
|
||||
|
||||
void
|
||||
freeaddrinfo(struct addrinfo *ai)
|
||||
struct addrinfo *ai;
|
||||
{
|
||||
struct addrinfo *next;
|
||||
|
||||
@ -530,7 +529,7 @@ getaddrinfo(const char *hostname, const char *servname, const struct addrinfo *h
|
||||
}
|
||||
|
||||
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;
|
||||
struct hostent *hp;
|
||||
|
@ -124,7 +124,7 @@ static VALUE tk_funcall _((VALUE(), int, VALUE*, VALUE));
|
||||
|
||||
/* safe Tcl_Eval and Tcl_GlobalEval */
|
||||
static int
|
||||
tcl_eval(Tcp_Interp interp, const char *cmd)
|
||||
tcl_eval(Tcl_Interp *interp, const char *cmd)
|
||||
{
|
||||
char *buf = strdup(cmd);
|
||||
const int ret = Tcl_Eval(interp, buf);
|
||||
@ -136,7 +136,7 @@ tcl_eval(Tcp_Interp interp, const char *cmd)
|
||||
#define Tcl_Eval tcl_eval
|
||||
|
||||
static int
|
||||
tcl_global_eval(Tcp_Interp *interp, const char *cmd)
|
||||
tcl_global_eval(Tcl_Interp *interp, const char *cmd)
|
||||
{
|
||||
char *buf = strdup(cmd);
|
||||
const int ret = Tcl_GlobalEval(interp, buf);
|
||||
|
@ -2983,7 +2983,7 @@ gzreader_skip_linebreaks(struct gzfile *gz)
|
||||
}
|
||||
|
||||
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)
|
||||
rb_raise(rb_eRuntimeError, "rs modified");
|
||||
|
Loading…
x
Reference in New Issue
Block a user