From dbd2c7dcea477f73311eaffe34d986d466d475eb Mon Sep 17 00:00:00 2001 From: Ralf Corsepius Date: Thu, 29 Mar 2007 08:39:21 +0000 Subject: =?UTF-8?q?2007-03-29=09Ralf=20Cors=C3=A9pius=20?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * libnetworking/libc/rcmd.c: Eliminate __P(). Cosmetics. --- cpukit/ChangeLog | 1 + cpukit/libnetworking/libc/rcmd.c | 14 ++++++-------- 2 files changed, 7 insertions(+), 8 deletions(-) (limited to 'cpukit') diff --git a/cpukit/ChangeLog b/cpukit/ChangeLog index 36b5637714..d2448bd24c 100644 --- a/cpukit/ChangeLog +++ b/cpukit/ChangeLog @@ -1,5 +1,6 @@ 2007-03-29 Ralf Corsépius + * libnetworking/libc/rcmd.c: Eliminate __P(). Cosmetics. * libnetworking/sys/select.h: Remove selrecord, selwakeup (Unused). * libnetworking/netinet/ip_output.c: Preps to eliminate _IP_VHL (Abandoned in FreeBSD). Misc mergers from upstream FreeBSD. diff --git a/cpukit/libnetworking/libc/rcmd.c b/cpukit/libnetworking/libc/rcmd.c index 542da3f21a..366d67b36e 100644 --- a/cpukit/libnetworking/libc/rcmd.c +++ b/cpukit/libnetworking/libc/rcmd.c @@ -53,14 +53,15 @@ static char sccsid[] = "@(#)rcmd.c 8.3 (Berkeley) 3/26/94"; #include #include #include -#ifdef YP #include +#ifdef YP #include #include #endif -#include - +#ifndef __rtems__ +extern int innetgr( const char *, const char *, const char *, const char * ); +#endif #define max(a, b) ((a > b) ? a : b) @@ -69,13 +70,10 @@ int rresvport(); #define bzero(a,s) memset((a),0,(s)) #define bcmp memcmp #define bcopy(s,d,i) memcpy(d,s,i) -int bindresvport(int, struct sockaddr_in *); #else /* __rtems__ */ -extern int innetgr __P(( const char *, const char *, const char *, const char * )); - -int __ivaliduser __P((FILE *, u_long, const char *, const char *)); -static int __icheckhost __P((u_long, char *)); +int __ivaliduser(FILE *, u_int32_t, const char *, const char *); +static int __icheckhost(const struct sockaddr *, socklen_t, const char *); #endif -- cgit v1.2.3