- 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
This commit is contained in:
Olaf Barthel
2004-09-29 14:31:57 +00:00
parent a7e0bc8e16
commit 64f39b51ae
4 changed files with 8 additions and 8 deletions
+2 -2
View File
@@ -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 * :ts=4
* *
@@ -48,7 +48,7 @@ _do_ctors(void)
static void static void
_do_dtors(void) _do_dtors(void)
{ {
ULONG i = (ULONG)__DTOR_LIST__[0]; unsigned long i = (unsigned long)__DTOR_LIST__[0];
void (**pFuncPtr)(void); void (**pFuncPtr)(void);
if (i == ~0UL) if (i == ~0UL)
+2 -2
View File
@@ -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 * :ts=4
* *
@@ -48,7 +48,7 @@
/****************************************************************************/ /****************************************************************************/
int 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; struct fd * fd;
int result = -1; int result = -1;
+2 -2
View File
@@ -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 * :ts=4
* *
@@ -48,7 +48,7 @@
/****************************************************************************/ /****************************************************************************/
int 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; struct fd * fd;
int result = -1; int result = -1;
+2 -2
View File
@@ -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 * :ts=4
* *
@@ -48,7 +48,7 @@
/****************************************************************************/ /****************************************************************************/
int 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; struct fd * fd;
int result = -1; int result = -1;