diff options
author | ocean <ocean@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2005-07-16 06:59:05 +0000 |
---|---|---|
committer | ocean <ocean@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2005-07-16 06:59:05 +0000 |
commit | c6a782c14eb1967a5a6d0d3aed99ff3d14488072 (patch) | |
tree | 1cd952cd495be09b005211d70fb22643797f6742 /win32/win32.h | |
parent | 5348402af54ee4be5ae9f0ddc5fffe3b62d3bd87 (diff) | |
download | ruby-c6a782c14eb1967a5a6d0d3aed99ff3d14488072.tar.gz |
* win32/win32.[hc]: constified socket functions. [ruby-dev:26553]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@8780 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'win32/win32.h')
-rw-r--r-- | win32/win32.h | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/win32/win32.h b/win32/win32.h index ef4120dd8d..a347f04f7a 100644 --- a/win32/win32.h +++ b/win32/win32.h @@ -146,8 +146,8 @@ extern rb_pid_t rb_w32_pipe_exec(const char *, const char *, int, int *); extern int flock(int fd, int oper); extern int rb_w32_is_socket(int); extern int rb_w32_accept(int, struct sockaddr *, int *); -extern int rb_w32_bind(int, struct sockaddr *, int); -extern int rb_w32_connect(int, struct sockaddr *, int); +extern int rb_w32_bind(int, const struct sockaddr *, int); +extern int rb_w32_connect(int, const struct sockaddr *, int); extern void rb_w32_fdset(int, fd_set*); extern void rb_w32_fdclr(int, fd_set*); extern int rb_w32_fdisset(int, fd_set*); @@ -159,19 +159,19 @@ extern int rb_w32_ioctlsocket(int, long, u_long *); extern int rb_w32_listen(int, int); extern int rb_w32_recv(int, char *, int, int); extern int rb_w32_recvfrom(int, char *, int, int, struct sockaddr *, int *); -extern int rb_w32_send(int, char *, int, int); -extern int rb_w32_sendto(int, char *, int, int, struct sockaddr *, int); -extern int rb_w32_setsockopt(int, int, int, char *, int); +extern int rb_w32_send(int, const char *, int, int); +extern int rb_w32_sendto(int, const char *, int, int, const struct sockaddr *, int); +extern int rb_w32_setsockopt(int, int, int, const char *, int); extern int rb_w32_shutdown(int, int); extern int rb_w32_socket(int, int, int); extern SOCKET rb_w32_get_osfhandle(int); -extern struct hostent * rb_w32_gethostbyaddr(char *, int, int); -extern struct hostent * rb_w32_gethostbyname(char *); +extern struct hostent * rb_w32_gethostbyaddr(const char *, int, int); +extern struct hostent * rb_w32_gethostbyname(const char *); extern int rb_w32_gethostname(char *, int); -extern struct protoent * rb_w32_getprotobyname(char *); +extern struct protoent * rb_w32_getprotobyname(const char *); extern struct protoent * rb_w32_getprotobynumber(int); -extern struct servent * rb_w32_getservbyname(char *, char *); -extern struct servent * rb_w32_getservbyport(int, char *); +extern struct servent * rb_w32_getservbyname(const char *, const char *); +extern struct servent * rb_w32_getservbyport(int, const char *); extern int rb_w32_socketpair(int, int, int, int *); extern char * rb_w32_getenv(const char *); extern int rb_w32_rename(const char *, const char *); |