From 64f39b51ae7e2b11ea43c91be3ab629fd9f26723 Mon Sep 17 00:00:00 2001 From: Olaf Barthel Date: Wed, 29 Sep 2004 14:31:57 +0000 Subject: [PATCH] - Modified the socket functions which now take parameters to constant pointers. git-svn-id: file:///Users/olsen/Code/migration-svn-zu-git/logical-line-staging/clib2/trunk@14740 87f5fb63-7c3d-0410-a384-fd976d0f7a62 --- library/crtbegin.c | 4 ++-- library/socket_send.c | 4 ++-- library/socket_sendto.c | 4 ++-- library/socket_setsockopt.c | 4 ++-- 4 files changed, 8 insertions(+), 8 deletions(-) diff --git a/library/crtbegin.c b/library/crtbegin.c index 8c4d933..5af302a 100644 --- a/library/crtbegin.c +++ b/library/crtbegin.c @@ -1,5 +1,5 @@ /* - * $Id: crtbegin.c,v 1.1.1.1 2004-07-26 16:30:22 obarthel Exp $ + * $Id: crtbegin.c,v 1.2 2004-09-29 14:31:56 obarthel Exp $ * * :ts=4 * @@ -48,7 +48,7 @@ _do_ctors(void) static void _do_dtors(void) { - ULONG i = (ULONG)__DTOR_LIST__[0]; + unsigned long i = (unsigned long)__DTOR_LIST__[0]; void (**pFuncPtr)(void); if (i == ~0UL) diff --git a/library/socket_send.c b/library/socket_send.c index 4e23068..b1289a7 100644 --- a/library/socket_send.c +++ b/library/socket_send.c @@ -1,5 +1,5 @@ /* - * $Id: socket_send.c,v 1.1.1.1 2004-07-26 16:31:19 obarthel Exp $ + * $Id: socket_send.c,v 1.2 2004-09-29 14:31:57 obarthel Exp $ * * :ts=4 * @@ -48,7 +48,7 @@ /****************************************************************************/ int -send(int sockfd,void *buff,size_t nbytes,int flags) +send(int sockfd,const void *buff,size_t nbytes,int flags) { struct fd * fd; int result = -1; diff --git a/library/socket_sendto.c b/library/socket_sendto.c index 312efa5..4f6da0b 100644 --- a/library/socket_sendto.c +++ b/library/socket_sendto.c @@ -1,5 +1,5 @@ /* - * $Id: socket_sendto.c,v 1.1.1.1 2004-07-26 16:31:20 obarthel Exp $ + * $Id: socket_sendto.c,v 1.2 2004-09-29 14:31:57 obarthel Exp $ * * :ts=4 * @@ -48,7 +48,7 @@ /****************************************************************************/ int -sendto(int sockfd,void *buff,int len,int flags,struct sockaddr *to,int tolen) +sendto(int sockfd,const void *buff,int len,int flags,struct sockaddr *to,int tolen) { struct fd * fd; int result = -1; diff --git a/library/socket_setsockopt.c b/library/socket_setsockopt.c index a2ca38f..192b8f7 100644 --- a/library/socket_setsockopt.c +++ b/library/socket_setsockopt.c @@ -1,5 +1,5 @@ /* - * $Id: socket_setsockopt.c,v 1.1.1.1 2004-07-26 16:31:20 obarthel Exp $ + * $Id: socket_setsockopt.c,v 1.2 2004-09-29 14:31:57 obarthel Exp $ * * :ts=4 * @@ -48,7 +48,7 @@ /****************************************************************************/ int -setsockopt(int sockfd,int level,int optname,void *optval,int optlen) +setsockopt(int sockfd,int level,int optname,const void *optval,int optlen) { struct fd * fd; int result = -1;