Minor tweaks to eliminate compiler warnings:

include <stdlib.h> to declare malloc() family.
  declare static functions before they are used.
This commit is contained in:
jtc 1993-08-25 22:07:19 +00:00
parent ac815031d0
commit 241d899984
6 changed files with 14 additions and 10 deletions

View File

@ -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 <stdio.h>
#include <stdlib.h>
#include <rpc/types.h>
#include <rpc/xdr.h>

View File

@ -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 <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <rpc/rpc.h>
#include <sys/socket.h>
#include <netdb.h>
#include <strings.h>
static struct callrpc_private {
CLIENT *client;

View File

@ -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";

View File

@ -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 <stdio.h>
#include <stdlib.h>
#include <rpc/rpc.h>
#include <sys/socket.h>
#include <errno.h>

View File

@ -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 <stdio.h>
#include <stdlib.h>
#include <rpc/types.h>
#include <rpc/xdr.h>

View File

@ -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 <stdio.h>
#include <stdlib.h>
#include <rpc/types.h>
#include <rpc/xdr.h>
#include <netinet/in.h>