Cleanup for GCC 2.

This commit is contained in:
mycroft 1993-04-19 07:39:27 +00:00
parent 67dc9247fd
commit abe115cd90
4 changed files with 5 additions and 4 deletions

View File

@ -43,6 +43,7 @@ static char sccsid[] = "@(#)printf.c 5.9 (Berkeley) 6/1/90";
#include <sys/types.h>
#include <stdio.h>
#include <string.h>
#define PF(f, func) { \
if (fieldwidth) \
@ -65,7 +66,7 @@ main(argc, argv)
static char *skip1, *skip2;
register char *format, *fmt, *start;
register int end, fieldwidth, precision;
char convch, nextch, *getstr(), *index(), *mklong();
char convch, nextch, *getstr(), *mklong();
double getdouble();
long getlong();

View File

@ -41,6 +41,7 @@
#include <netinet/in.h>
#include <stdio.h>
#include <ctype.h>
#include <string.h>
#include <errno.h>
#include <pwd.h>
#include <grp.h>

View File

@ -57,8 +57,7 @@ int expany; /* any expansions done? */
char *entp;
char **sortbase;
char *index();
int argcmp();
static int argcmp();
#define sort() qsort((char *)sortbase, &eargv[eargc] - sortbase, \
sizeof(*sortbase), argcmp), sortbase = &eargv[eargc]

View File

@ -53,7 +53,7 @@ static char sccsid[] = "@(#)rpcinfo.c 1.22 87/08/12 SMI";
#define MAXHOSTLEN 256
#define MIN_VERS ((u_long) 0)
#define MAX_VERS ((u_long) 4294967295L)
#define MAX_VERS ((u_long) 4294967295UL)
static void udpping(/*u_short portflag, int argc, char **argv*/);
static void tcpping(/*u_short portflag, int argc, char **argv*/);