diff options
author | Joel Sherrill <joel.sherrill@OARcorp.com> | 2004-03-05 17:58:51 +0000 |
---|---|---|
committer | Joel Sherrill <joel.sherrill@OARcorp.com> | 2004-03-05 17:58:51 +0000 |
commit | b2b143f402b30c7bbe4ee98c58221b0cc78a1e9e (patch) | |
tree | 07d852d08ed4fe4c745ada0c7bbca69eaae85a58 /cpukit/libnetworking | |
parent | 2004-03-05 Joel Sherrill <joel@OARcorp.com> (diff) | |
download | rtems-b2b143f402b30c7bbe4ee98c58221b0cc78a1e9e.tar.bz2 |
2004-03-05 Joel Sherrill <joel@OARcorp.com>
* libblock/src/bdbuf.c, libblock/src/ramdisk.c,
libcsupport/src/newlibc.c, libcsupport/src/sync.c,
libmisc/cpuuse/cpuuse.c, libmisc/monitor/mon-symbols.c,
libmisc/shell/cmds.c, libmisc/shell/shell.c,
libnetworking/kern/kern_sysctl.c, libnetworking/lib/ftpfs.c,
libnetworking/lib/tftpDriver.c, libnetworking/libc/gethostbydns.c,
libnetworking/libc/gethostbyht.c, libnetworking/libc/gethostnamadr.c,
libnetworking/libc/getnetbyht.c, libnetworking/libc/getnetnamadr.c,
libnetworking/libc/inet_addr.c, libnetworking/libc/linkaddr.c,
libnetworking/libc/map_v4v6.c, libnetworking/libc/ns_print.c,
libnetworking/libc/ns_ttl.c, libnetworking/libc/nsap_addr.c,
libnetworking/libc/rcmd.c, libnetworking/libc/res_debug.c,
libnetworking/libc/res_mkupdate.c, libnetworking/libc/res_query.c,
libnetworking/libc/res_send.c, libnetworking/libc/res_update.c,
libnetworking/net/radix.c, libnetworking/rtems/mkrootfs.c,
librpc/src/rpc/clnt_perror.c, librpc/src/rpc/rtems_rpc.c,
librpc/src/rpc/svc.c, sapi/include/confdefs.h,
score/macros/rtems/score/chain.inl, score/src/objectidtoname.c:
Diffstat (limited to 'cpukit/libnetworking')
22 files changed, 103 insertions, 3 deletions
diff --git a/cpukit/libnetworking/kern/kern_sysctl.c b/cpukit/libnetworking/kern/kern_sysctl.c index c2bbb4aedd..0809957797 100644 --- a/cpukit/libnetworking/kern/kern_sysctl.c +++ b/cpukit/libnetworking/kern/kern_sysctl.c @@ -60,6 +60,11 @@ #else #include <sys/buf.h> +/* Since we compile with strict ANSI we need to undef it to get + * prototypes for extensions + */ +#undef __STRICT_ANSI__ + #include <stdio.h> /* for snprintf() */ size_t strlcpy(char *, const char *, size_t); #endif diff --git a/cpukit/libnetworking/lib/ftpfs.c b/cpukit/libnetworking/lib/ftpfs.c index 28ec9422ae..8a6769f2de 100644 --- a/cpukit/libnetworking/lib/ftpfs.c +++ b/cpukit/libnetworking/lib/ftpfs.c @@ -636,8 +636,8 @@ int rtems_ftp_open( hent = gethostbyname(hostname); if (hent != NULL) { - bcopy(hent->h_addr, - (char *)(&(fsp->farCtrlAddress.sin_addr)), + memcpy((char *)(&(fsp->farCtrlAddress.sin_addr)), + hent->h_addr, sizeof(fsp->farCtrlAddress.sin_addr)); } else { diff --git a/cpukit/libnetworking/lib/tftpDriver.c b/cpukit/libnetworking/lib/tftpDriver.c index 6ab6c44659..3b34dbabc8 100644 --- a/cpukit/libnetworking/lib/tftpDriver.c +++ b/cpukit/libnetworking/lib/tftpDriver.c @@ -15,6 +15,11 @@ * */ +/* Since we compile with strict ANSI we need to undef it to get + * prototypes for extensions + */ +#undef __STRICT_ANSI__ + #include <stdio.h> #include <stdlib.h> #include <errno.h> diff --git a/cpukit/libnetworking/libc/gethostbydns.c b/cpukit/libnetworking/libc/gethostbydns.c index 4991ccad22..f87b15489d 100644 --- a/cpukit/libnetworking/libc/gethostbydns.c +++ b/cpukit/libnetworking/libc/gethostbydns.c @@ -66,6 +66,11 @@ static char rcsid[] = "$Id$"; #include <arpa/inet.h> #include <arpa/nameser.h> +/* Since we compile with strict ANSI we need to undef it to get + * prototypes for extensions + */ +#undef __STRICT_ANSI__ + #include <stdio.h> #include <unistd.h> #include <string.h> diff --git a/cpukit/libnetworking/libc/gethostbyht.c b/cpukit/libnetworking/libc/gethostbyht.c index 29f2805367..023347f84e 100644 --- a/cpukit/libnetworking/libc/gethostbyht.c +++ b/cpukit/libnetworking/libc/gethostbyht.c @@ -56,6 +56,11 @@ static char sccsid[] = "@(#)gethostnamadr.c 8.1 (Berkeley) 6/4/93"; static char rcsid[] = "$Id$"; #endif /* LIBC_SCCS and not lint */ +/* Since we compile with strict ANSI we need to undef it to get + * prototypes for extensions + */ +#undef __STRICT_ANSI__ + #include <sys/param.h> #include <sys/socket.h> #include <netinet/in.h> diff --git a/cpukit/libnetworking/libc/gethostnamadr.c b/cpukit/libnetworking/libc/gethostnamadr.c index 92f7a21014..e537c16499 100644 --- a/cpukit/libnetworking/libc/gethostnamadr.c +++ b/cpukit/libnetworking/libc/gethostnamadr.c @@ -28,6 +28,11 @@ static char sccsid[] = "@(#)$Id$"; static char rcsid[] = "$Id$"; #endif /* LIBC_SCCS and not lint */ +/* Since we compile with strict ANSI we need to undef it to get + * prototypes for extensions + */ +#undef __STRICT_ANSI__ + #include <sys/param.h> #include <sys/socket.h> #include <netinet/in.h> diff --git a/cpukit/libnetworking/libc/getnetbyht.c b/cpukit/libnetworking/libc/getnetbyht.c index f7b7b1091d..95a8d796fe 100644 --- a/cpukit/libnetworking/libc/getnetbyht.c +++ b/cpukit/libnetworking/libc/getnetbyht.c @@ -47,6 +47,11 @@ static char orig_rcsid[] = "From: Id: getnetent.c,v 8.4 1997/06/01 20:34:37 vixi static chat rcsid[] = "$Id$"; #endif /* LIBC_SCCS and not lint */ +/* Since we compile with strict ANSI we need to undef it to get + * prototypes for extensions + */ +#undef __STRICT_ANSI__ + #include <sys/types.h> #include <sys/socket.h> #include <netinet/in.h> diff --git a/cpukit/libnetworking/libc/getnetnamadr.c b/cpukit/libnetworking/libc/getnetnamadr.c index 4d6597f98c..f2699bb1fe 100644 --- a/cpukit/libnetworking/libc/getnetnamadr.c +++ b/cpukit/libnetworking/libc/getnetnamadr.c @@ -27,6 +27,11 @@ static char rcsid[] = "$Id$"; #endif /* LIBC_SCCS and not lint */ +/* Since we compile with strict ANSI we need to undef it to get + * prototypes for extensions + */ +#undef __STRICT_ANSI__ + #include <sys/param.h> #include <sys/socket.h> #include <netinet/in.h> diff --git a/cpukit/libnetworking/libc/inet_addr.c b/cpukit/libnetworking/libc/inet_addr.c index 225ccc1269..078a797012 100644 --- a/cpukit/libnetworking/libc/inet_addr.c +++ b/cpukit/libnetworking/libc/inet_addr.c @@ -58,6 +58,11 @@ static char sccsid[] = "@(#)inet_addr.c 8.1 (Berkeley) 6/17/93"; static char rcsid[] = "$Id$"; #endif /* LIBC_SCCS and not lint */ +/* Since we compile with strict ANSI we need to undef it to get + * prototypes for extensions + */ +#undef __STRICT_ANSI__ + #include <sys/param.h> #include <netinet/in.h> #include <arpa/inet.h> diff --git a/cpukit/libnetworking/libc/linkaddr.c b/cpukit/libnetworking/libc/linkaddr.c index 2bad464b12..49364d14a3 100644 --- a/cpukit/libnetworking/libc/linkaddr.c +++ b/cpukit/libnetworking/libc/linkaddr.c @@ -37,6 +37,11 @@ static char sccsid[] = "@(#)linkaddr.c 8.1 (Berkeley) 6/4/93"; #endif /* LIBC_SCCS and not lint */ +/* Since we compile with strict ANSI we need to undef it to get + * prototypes for extensions + */ +#undef __STRICT_ANSI__ + #include <sys/types.h> #include <sys/socket.h> #include <net/if_dl.h> diff --git a/cpukit/libnetworking/libc/map_v4v6.c b/cpukit/libnetworking/libc/map_v4v6.c index 0f8658e117..e0b0f05d9c 100644 --- a/cpukit/libnetworking/libc/map_v4v6.c +++ b/cpukit/libnetworking/libc/map_v4v6.c @@ -65,6 +65,11 @@ static char rcsid[] = "$Id$"; #include <arpa/inet.h> #include <arpa/nameser.h> +/* Since we compile with strict ANSI we need to undef it to get + * prototypes for extensions + */ +#undef __STRICT_ANSI__ + #include <stdio.h> #include <string.h> #include <netdb.h> diff --git a/cpukit/libnetworking/libc/ns_print.c b/cpukit/libnetworking/libc/ns_print.c index f7d7d16c64..939e3ff9af 100644 --- a/cpukit/libnetworking/libc/ns_print.c +++ b/cpukit/libnetworking/libc/ns_print.c @@ -30,6 +30,11 @@ static char rcsid[] = "$Id$"; #include <arpa/nameser.h> #include <arpa/inet.h> +/* Since we compile with strict ANSI we need to undef it to get + * prototypes for extensions + */ +#undef __STRICT_ANSI__ + #include <assert.h> #include <errno.h> #include <resolv.h> diff --git a/cpukit/libnetworking/libc/ns_ttl.c b/cpukit/libnetworking/libc/ns_ttl.c index 75093c1dbc..9d81e2a99f 100644 --- a/cpukit/libnetworking/libc/ns_ttl.c +++ b/cpukit/libnetworking/libc/ns_ttl.c @@ -25,6 +25,11 @@ static char rcsid[] = "$Id$"; #include <arpa/nameser.h> +/* Since we compile with strict ANSI we need to undef it to get + * prototypes for extensions + */ +#undef __STRICT_ANSI__ + #include <ctype.h> #include <errno.h> #include <stdio.h> diff --git a/cpukit/libnetworking/libc/nsap_addr.c b/cpukit/libnetworking/libc/nsap_addr.c index a7af57a266..c34d61d81a 100644 --- a/cpukit/libnetworking/libc/nsap_addr.c +++ b/cpukit/libnetworking/libc/nsap_addr.c @@ -19,6 +19,11 @@ static char rcsid[] = "$Id$"; #endif /* LIBC_SCCS and not lint */ +/* Since we compile with strict ANSI we need to undef it to get + * prototypes for extensions + */ +#undef __STRICT_ANSI__ + #include <sys/types.h> #include <sys/param.h> #include <sys/socket.h> diff --git a/cpukit/libnetworking/libc/rcmd.c b/cpukit/libnetworking/libc/rcmd.c index c588172434..d58cecce5d 100644 --- a/cpukit/libnetworking/libc/rcmd.c +++ b/cpukit/libnetworking/libc/rcmd.c @@ -44,6 +44,11 @@ static char sccsid[] = "@(#)rcmd.c 8.3 (Berkeley) 3/26/94"; #include <netinet/in.h> #include <arpa/inet.h> +/* Since we compile with strict ANSI we need to undef it to get + * prototypes for extensions + */ +#undef __STRICT_ANSI__ + #include <signal.h> #include <fcntl.h> #include <netdb.h> diff --git a/cpukit/libnetworking/libc/res_debug.c b/cpukit/libnetworking/libc/res_debug.c index b747b6e6d2..0b3d9198ac 100644 --- a/cpukit/libnetworking/libc/res_debug.c +++ b/cpukit/libnetworking/libc/res_debug.c @@ -98,6 +98,11 @@ static char sccsid[] = "@(#)res_debug.c 8.1 (Berkeley) 6/4/93"; static char rcsid[] = "$Id$"; #endif /* LIBC_SCCS and not lint */ +/* Since we compile with strict ANSI we need to undef it to get + * prototypes for extensions + */ +#undef __STRICT_ANSI__ + #include <sys/types.h> #include <sys/param.h> #include <sys/socket.h> diff --git a/cpukit/libnetworking/libc/res_mkupdate.c b/cpukit/libnetworking/libc/res_mkupdate.c index 56362f650b..780a8747f5 100644 --- a/cpukit/libnetworking/libc/res_mkupdate.c +++ b/cpukit/libnetworking/libc/res_mkupdate.c @@ -26,6 +26,11 @@ static char rcsid[] = "$Id$"; #endif /* not lint */ #endif /* not rtems */ +/* Since we compile with strict ANSI we need to undef it to get + * prototypes for extensions + */ +#undef __STRICT_ANSI__ + #include <sys/types.h> #include <sys/param.h> diff --git a/cpukit/libnetworking/libc/res_query.c b/cpukit/libnetworking/libc/res_query.c index 784fa433bc..44b0b58533 100644 --- a/cpukit/libnetworking/libc/res_query.c +++ b/cpukit/libnetworking/libc/res_query.c @@ -74,6 +74,11 @@ static char orig_rcsid = "From: Id: res_query.c,v 8.14 1997/06/09 17:47:05 halle static char rcsid[] = "$Id$"; #endif /* LIBC_SCCS and not lint */ +/* Since we compile with strict ANSI we need to undef it to get + * prototypes for extensions + */ +#undef __STRICT_ANSI__ + #include <sys/types.h> #include <sys/param.h> #include <netinet/in.h> diff --git a/cpukit/libnetworking/libc/res_send.c b/cpukit/libnetworking/libc/res_send.c index fadc16c566..07687e791f 100644 --- a/cpukit/libnetworking/libc/res_send.c +++ b/cpukit/libnetworking/libc/res_send.c @@ -78,6 +78,11 @@ static char rcsid[] = "$Id$"; * Send query to name server and wait for reply. */ +/* Since we compile with strict ANSI we need to undef it to get + * prototypes for extensions + */ +#undef __STRICT_ANSI__ + #include <sys/types.h> #include <sys/param.h> #include <sys/time.h> diff --git a/cpukit/libnetworking/libc/res_update.c b/cpukit/libnetworking/libc/res_update.c index ef591e0674..a780529ce0 100644 --- a/cpukit/libnetworking/libc/res_update.c +++ b/cpukit/libnetworking/libc/res_update.c @@ -26,6 +26,11 @@ static char rcsid[] = "$Id$"; * <viraj_bais@ccm.fm.intel.com> */ +/* Since we compile with strict ANSI we need to undef it to get + * prototypes for extensions + */ +#undef __STRICT_ANSI__ + #include <sys/param.h> #include <sys/socket.h> #include <sys/time.h> diff --git a/cpukit/libnetworking/net/radix.c b/cpukit/libnetworking/net/radix.c index d7419ccca4..7b2af1352b 100644 --- a/cpukit/libnetworking/net/radix.c +++ b/cpukit/libnetworking/net/radix.c @@ -1026,6 +1026,6 @@ rn_init() addmask_key = cplim = rn_ones + max_keylen; while (cp < cplim) *cp++ = -1; - if (rn_inithead((void **)&mask_rnhead, 0) == 0) + if (rn_inithead((void *)&mask_rnhead, 0) == 0) panic("rn_init 2"); } diff --git a/cpukit/libnetworking/rtems/mkrootfs.c b/cpukit/libnetworking/rtems/mkrootfs.c index f1b63bd4ee..e2eb366cf3 100644 --- a/cpukit/libnetworking/rtems/mkrootfs.c +++ b/cpukit/libnetworking/rtems/mkrootfs.c @@ -25,6 +25,11 @@ */ +/* Since we compile with strict ANSI we need to undef it to get + * prototypes for extensions + */ +#undef __STRICT_ANSI__ + #include <errno.h> #include <stdio.h> #include <string.h> |