summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@OARcorp.com>2002-10-31 20:13:54 +0000
committerJoel Sherrill <joel.sherrill@OARcorp.com>2002-10-31 20:13:54 +0000
commit2419e17c9c1d002896c6c24e7009d4b8987abdb6 (patch)
tree42f14a9c3989f4d4f0752b2119c7b839da6f963f
parenta761f5650d49d2ba73766854423911058f6225a8 (diff)
downloadrtems-2419e17c9c1d002896c6c24e7009d4b8987abdb6.tar.bz2
2002-10-31 Joel Sherrill <joel@OARcorp.com>
* rtems_webserver/socket.c, rtems_webserver/uemf.h: Removed warnings.
-rw-r--r--c/src/libnetworking/ChangeLog5
-rw-r--r--c/src/libnetworking/rtems_webserver/socket.c2
-rw-r--r--c/src/libnetworking/rtems_webserver/uemf.h1
-rw-r--r--cpukit/httpd/socket.c2
-rw-r--r--cpukit/httpd/uemf.h1
5 files changed, 9 insertions, 2 deletions
diff --git a/c/src/libnetworking/ChangeLog b/c/src/libnetworking/ChangeLog
index 981e0ea3d4..495ab04046 100644
--- a/c/src/libnetworking/ChangeLog
+++ b/c/src/libnetworking/ChangeLog
@@ -1,3 +1,8 @@
+2002-10-31 Joel Sherrill <joel@OARcorp.com>
+
+ * rtems_webserver/socket.c, rtems_webserver/uemf.h: Removed
+ warnings.
+
2002-10-21 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
* .cvsignore: Reformat.
diff --git a/c/src/libnetworking/rtems_webserver/socket.c b/c/src/libnetworking/rtems_webserver/socket.c
index 200cf232b5..8a145fe520 100644
--- a/c/src/libnetworking/rtems_webserver/socket.c
+++ b/c/src/libnetworking/rtems_webserver/socket.c
@@ -360,7 +360,7 @@ static void socketAccept(socket_t *sp)
* Accept the connection and prevent inheriting by children (F_SETFD)
*/
len = sizeof(struct sockaddr_in);
- if ((newSock = accept(sp->sock, (struct sockaddr *) &addr, &len)) < 0) {
+ if ((newSock = accept(sp->sock, (struct sockaddr *) &addr, (int *)&len)) < 0) {
return;
}
#ifndef __NO_FCNTL
diff --git a/c/src/libnetworking/rtems_webserver/uemf.h b/c/src/libnetworking/rtems_webserver/uemf.h
index 59533aac00..cf2f31fd81 100644
--- a/c/src/libnetworking/rtems_webserver/uemf.h
+++ b/c/src/libnetworking/rtems_webserver/uemf.h
@@ -879,6 +879,7 @@ extern void bstats(int handle, void (*writefn)(int handle, char_t *fmt, ...));
#if !LINUX && !__rtems__
+#define __NO_PACK 1
extern char_t *basename(char_t *name);
#endif /* !LINUX */
diff --git a/cpukit/httpd/socket.c b/cpukit/httpd/socket.c
index 200cf232b5..8a145fe520 100644
--- a/cpukit/httpd/socket.c
+++ b/cpukit/httpd/socket.c
@@ -360,7 +360,7 @@ static void socketAccept(socket_t *sp)
* Accept the connection and prevent inheriting by children (F_SETFD)
*/
len = sizeof(struct sockaddr_in);
- if ((newSock = accept(sp->sock, (struct sockaddr *) &addr, &len)) < 0) {
+ if ((newSock = accept(sp->sock, (struct sockaddr *) &addr, (int *)&len)) < 0) {
return;
}
#ifndef __NO_FCNTL
diff --git a/cpukit/httpd/uemf.h b/cpukit/httpd/uemf.h
index 59533aac00..cf2f31fd81 100644
--- a/cpukit/httpd/uemf.h
+++ b/cpukit/httpd/uemf.h
@@ -879,6 +879,7 @@ extern void bstats(int handle, void (*writefn)(int handle, char_t *fmt, ...));
#if !LINUX && !__rtems__
+#define __NO_PACK 1
extern char_t *basename(char_t *name);
#endif /* !LINUX */