diff options
author | Joel Sherrill <joel.sherrill@OARcorp.com> | 2007-06-21 18:26:28 +0000 |
---|---|---|
committer | Joel Sherrill <joel.sherrill@OARcorp.com> | 2007-06-21 18:26:28 +0000 |
commit | 557c93ad4e3ad10563b2dfe27feea2838c867735 (patch) | |
tree | 62798f90ea7e195eea111b3b3c91a63f6fb50bc0 | |
parent | 2007-06-21 Joel Sherrill <joel.sherrill@OARcorp.com> (diff) | |
download | network-demos-557c93ad4e3ad10563b2dfe27feea2838c867735.tar.bz2 |
2007-06-21 Joel Sherrill <joel.sherrill@OARcorp.com>
* init.c, test.c: More warnings removed.
-rw-r--r-- | select/ChangeLog | 4 | ||||
-rw-r--r-- | select/init.c | 1 | ||||
-rw-r--r-- | select/test.c | 7 | ||||
-rw-r--r-- | tftpTest/ChangeLog | 4 | ||||
-rw-r--r-- | tftpTest/init.c | 1 | ||||
-rw-r--r-- | tftpTest/test.c | 1 |
6 files changed, 16 insertions, 2 deletions
diff --git a/select/ChangeLog b/select/ChangeLog index 127312c..06da62b 100644 --- a/select/ChangeLog +++ b/select/ChangeLog @@ -1,5 +1,9 @@ 2007-06-21 Joel Sherrill <joel.sherrill@OARcorp.com> + * init.c, test.c: More warnings removed. + +2007-06-21 Joel Sherrill <joel.sherrill@OARcorp.com> + * init.c: confdefs.h should be rtems/confdefs.h 2007-06-21 Joel Sherrill <joel.sherrill@OARcorp.com> diff --git a/select/init.c b/select/init.c index e969fea..4156595 100644 --- a/select/init.c +++ b/select/init.c @@ -42,6 +42,7 @@ rtems_task Init (rtems_task_argument argument); #include <rtems/confdefs.h> #include <stdio.h> +#include <stdlib.h> #include <rtems/rtems_bsdnet.h> #include "../networkconfig.h" diff --git a/select/test.c b/select/test.c index a04c1e9..bc1076e 100644 --- a/select/test.c +++ b/select/test.c @@ -24,6 +24,7 @@ #include <rtems/error.h> #include <sys/types.h> #include <sys/socket.h> +#include <sys/select.h> #include <netinet/in.h> #define BASE_PORT 24742 @@ -36,7 +37,7 @@ getClients (unsigned short port) { int s, s1; struct sockaddr_in myAddr, farAddr; - int addrlen; + socklen_t addrlen; int clientCount; printf ("Create socket.\n"); @@ -148,11 +149,12 @@ wakeup (struct socket *so, caddr_t arg) rtems_event_send (tid, RTEMS_EVENT_0 + (int) arg); } +#if 0 static void echoServer2 (port) { struct sockwakeup sw, sw2; - int swlen; + socklen_t swlen; int clientCount; rtems_event_set clientEvents; @@ -226,6 +228,7 @@ echoServer2 (port) } } } +#endif void doSocket (void) diff --git a/tftpTest/ChangeLog b/tftpTest/ChangeLog index fdd1ed1..98811d5 100644 --- a/tftpTest/ChangeLog +++ b/tftpTest/ChangeLog @@ -1,5 +1,9 @@ 2007-06-21 Joel Sherrill <joel.sherrill@OARcorp.com> + * init.c, test.c: More warnings removed. + +2007-06-21 Joel Sherrill <joel.sherrill@OARcorp.com> + * init.c: confdefs.h should be rtems/confdefs.h 2007-06-21 Joel Sherrill <joel.sherrill@OARcorp.com> diff --git a/tftpTest/init.c b/tftpTest/init.c index 146605f..94f5cb5 100644 --- a/tftpTest/init.c +++ b/tftpTest/init.c @@ -43,6 +43,7 @@ rtems_task Init (rtems_task_argument argument); #include <rtems/confdefs.h> #include <stdio.h> +#include <stdlib.h> #include <rtems/rtems_bsdnet.h> #include <netinet/in.h> #include <arpa/inet.h> diff --git a/tftpTest/test.c b/tftpTest/test.c index 75e4666..a18d1f3 100644 --- a/tftpTest/test.c +++ b/tftpTest/test.c @@ -22,6 +22,7 @@ #include <rtems/error.h> #include <sys/fcntl.h> #include <unistd.h> +#include <stdlib.h> static char cbuf[1024]; static char *fullname; |