From 241d899984bb584732b251cf11383e25072e34eb Mon Sep 17 00:00:00 2001 From: jtc Date: Wed, 25 Aug 1993 22:07:19 +0000 Subject: [PATCH] Minor tweaks to eliminate compiler warnings: include to declare malloc() family. declare static functions before they are used. --- lib/librpc/rpc/auth_unix.c | 3 ++- lib/librpc/rpc/clnt_simple.c | 5 +++-- lib/librpc/rpc/getrpcent.c | 5 ++--- lib/librpc/rpc/svc_udp.c | 3 ++- lib/librpc/rpc/xdr_array.c | 5 +++-- lib/librpc/rpc/xdr_rec.c | 3 ++- 6 files changed, 14 insertions(+), 10 deletions(-) diff --git a/lib/librpc/rpc/auth_unix.c b/lib/librpc/rpc/auth_unix.c index 6a567602deb1..0f31a5b852dc 100644 --- a/lib/librpc/rpc/auth_unix.c +++ b/lib/librpc/rpc/auth_unix.c @@ -29,7 +29,7 @@ #if !defined(lint) && defined(SCCSIDS) /*static char sccsid[] = "from: @(#)auth_unix.c 1.19 87/08/11 Copyr 1984 Sun Micro";*/ /*static char sccsid[] = "from: @(#)auth_unix.c 2.2 88/08/01 4.0 RPCSRC";*/ -static char rcsid[] = "$Id: auth_unix.c,v 1.2 1993/08/01 18:33:54 mycroft Exp $"; +static char rcsid[] = "$Id: auth_unix.c,v 1.3 1993/08/25 22:07:19 jtc Exp $"; #endif /* @@ -45,6 +45,7 @@ static char rcsid[] = "$Id: auth_unix.c,v 1.2 1993/08/01 18:33:54 mycroft Exp $" */ #include +#include #include #include diff --git a/lib/librpc/rpc/clnt_simple.c b/lib/librpc/rpc/clnt_simple.c index bde4cea1fd6d..eae8400ec2b6 100644 --- a/lib/librpc/rpc/clnt_simple.c +++ b/lib/librpc/rpc/clnt_simple.c @@ -29,7 +29,7 @@ #if !defined(lint) && defined(SCCSIDS) /*static char sccsid[] = "from: @(#)clnt_simple.c 1.35 87/08/11 Copyr 1984 Sun Micro";*/ /*static char sccsid[] = "from: @(#)clnt_simple.c 2.2 88/08/01 4.0 RPCSRC";*/ -static char rcsid[] = "$Id: clnt_simple.c,v 1.2 1993/08/01 18:33:46 mycroft Exp $"; +static char rcsid[] = "$Id: clnt_simple.c,v 1.3 1993/08/25 22:07:21 jtc Exp $"; #endif /* @@ -40,10 +40,11 @@ static char rcsid[] = "$Id: clnt_simple.c,v 1.2 1993/08/01 18:33:46 mycroft Exp */ #include +#include +#include #include #include #include -#include static struct callrpc_private { CLIENT *client; diff --git a/lib/librpc/rpc/getrpcent.c b/lib/librpc/rpc/getrpcent.c index e88b2bada8d3..15d2fddb2160 100644 --- a/lib/librpc/rpc/getrpcent.c +++ b/lib/librpc/rpc/getrpcent.c @@ -29,7 +29,7 @@ */ #if !defined(lint) && defined(SCCSIDS) /*static char sccsid[] = "from: @(#)getrpcent.c 1.14 91/03/11 Copyr 1984 Sun Micro";*/ -static char rcsid[] = "$Id: getrpcent.c,v 1.5 1993/08/01 18:33:39 mycroft Exp $"; +static char rcsid[] = "$Id: getrpcent.c,v 1.6 1993/08/25 22:07:22 jtc Exp $"; #endif /* @@ -60,7 +60,7 @@ struct rpcdata { char *current; int currentlen; #endif -} *rpcdata, *_rpcdata(); +} *rpcdata; #ifdef YP static int __yp_nomap = 0; @@ -69,7 +69,6 @@ static int __yp_nomap = 0; static struct rpcent *interpret(); struct hostent *gethostent(); char *inet_ntoa(); -static char *index(); static char RPCDB[] = "/etc/rpc"; diff --git a/lib/librpc/rpc/svc_udp.c b/lib/librpc/rpc/svc_udp.c index e6526f4369ac..24493f29a904 100644 --- a/lib/librpc/rpc/svc_udp.c +++ b/lib/librpc/rpc/svc_udp.c @@ -29,7 +29,7 @@ #if !defined(lint) && defined(SCCSIDS) /*static char sccsid[] = "from: @(#)svc_udp.c 1.24 87/08/11 Copyr 1984 Sun Micro";*/ /*static char sccsid[] = "from: @(#)svc_udp.c 2.2 88/07/29 4.0 RPCSRC";*/ -static char rcsid[] = "$Id: svc_udp.c,v 1.2 1993/08/01 18:34:08 mycroft Exp $"; +static char rcsid[] = "$Id: svc_udp.c,v 1.3 1993/08/25 22:07:23 jtc Exp $"; #endif /* @@ -41,6 +41,7 @@ static char rcsid[] = "$Id: svc_udp.c,v 1.2 1993/08/01 18:34:08 mycroft Exp $"; */ #include +#include #include #include #include diff --git a/lib/librpc/rpc/xdr_array.c b/lib/librpc/rpc/xdr_array.c index d7612bb2732a..d60cd15a01be 100644 --- a/lib/librpc/rpc/xdr_array.c +++ b/lib/librpc/rpc/xdr_array.c @@ -26,10 +26,11 @@ * 2550 Garcia Avenue * Mountain View, California 94043 */ + #if !defined(lint) && defined(SCCSIDS) /*static char sccsid[] = "from: @(#)xdr_array.c 1.10 87/08/11 Copyr 1984 Sun Micro";*/ /*static char sccsid[] = "from: @(#)xdr_array.c 2.1 88/07/29 4.0 RPCSRC";*/ -static char rcsid[] = "$Id: xdr_array.c,v 1.2 1993/08/01 18:34:04 mycroft Exp $"; +static char rcsid[] = "$Id: xdr_array.c,v 1.3 1993/08/25 22:07:25 jtc Exp $"; #endif /* @@ -42,7 +43,7 @@ static char rcsid[] = "$Id: xdr_array.c,v 1.2 1993/08/01 18:34:04 mycroft Exp $" */ #include - +#include #include #include diff --git a/lib/librpc/rpc/xdr_rec.c b/lib/librpc/rpc/xdr_rec.c index 81a6985720a0..29a29125cb24 100644 --- a/lib/librpc/rpc/xdr_rec.c +++ b/lib/librpc/rpc/xdr_rec.c @@ -29,7 +29,7 @@ #if !defined(lint) && defined(SCCSIDS) /*static char sccsid[] = "from: @(#)xdr_rec.c 1.21 87/08/11 Copyr 1984 Sun Micro";*/ /*static char sccsid[] = "from: @(#)xdr_rec.c 2.2 88/08/01 4.0 RPCSRC";*/ -static char rcsid[] = "$Id: xdr_rec.c,v 1.2 1993/08/01 18:33:59 mycroft Exp $"; +static char rcsid[] = "$Id: xdr_rec.c,v 1.3 1993/08/25 22:07:26 jtc Exp $"; #endif /* @@ -50,6 +50,7 @@ static char rcsid[] = "$Id: xdr_rec.c,v 1.2 1993/08/01 18:33:59 mycroft Exp $"; */ #include +#include #include #include #include