Taking (out) the __P

This commit is contained in:
dsl 2005-02-06 20:50:34 +00:00
parent e77d2c6bcd
commit 6ffe77ddd2
5 changed files with 21 additions and 32 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: cmp.c,v 1.13 2003/08/07 11:13:22 agc Exp $ */
/* $NetBSD: cmp.c,v 1.14 2005/02/06 20:50:34 dsl Exp $ */
/*
* Copyright (c) 1987, 1990, 1993, 1994
@ -39,7 +39,7 @@ __COPYRIGHT("@(#) Copyright (c) 1987, 1990, 1993, 1994\n\
#if 0
static char sccsid[] = "@(#)cmp.c 8.3 (Berkeley) 4/2/94";
#else
__RCSID("$NetBSD: cmp.c,v 1.13 2003/08/07 11:13:22 agc Exp $");
__RCSID("$NetBSD: cmp.c,v 1.14 2005/02/06 20:50:34 dsl Exp $");
#endif
#endif /* not lint */
@ -58,13 +58,10 @@ __RCSID("$NetBSD: cmp.c,v 1.13 2003/08/07 11:13:22 agc Exp $");
int lflag, sflag;
int main __P((int, char **));
static void usage __P((void));
static void usage(void);
int
main(argc, argv)
int argc;
char *argv[];
main(int argc, char *argv[])
{
struct stat sb1, sb2;
off_t skip1, skip2;
@ -145,7 +142,7 @@ main(argc, argv)
}
static void
usage()
usage(void)
{
(void)fprintf(stderr,

View File

@ -1,4 +1,4 @@
/* $NetBSD: extern.h,v 1.4 2003/08/07 11:13:22 agc Exp $ */
/* $NetBSD: extern.h,v 1.5 2005/02/06 20:50:34 dsl Exp $ */
/*-
* Copyright (c) 1991, 1993, 1994
@ -35,9 +35,9 @@
#define DIFF_EXIT 1
#define ERR_EXIT 2 /* error exit code */
void c_regular __P((int, char *, off_t, off_t, int, char *, off_t, off_t));
void c_special __P((int, char *, off_t, int, char *, off_t));
void diffmsg __P((char *, char *, off_t, off_t));
void eofmsg __P((char *));
void c_regular(int, char *, off_t, off_t, int, char *, off_t, off_t);
void c_special(int, char *, off_t, int, char *, off_t);
void diffmsg(char *, char *, off_t, off_t);
void eofmsg(char *);
extern int lflag, sflag;

View File

@ -1,4 +1,4 @@
/* $NetBSD: misc.c,v 1.7 2003/08/07 11:13:22 agc Exp $ */
/* $NetBSD: misc.c,v 1.8 2005/02/06 20:50:34 dsl Exp $ */
/*-
* Copyright (c) 1991, 1993, 1994
@ -34,7 +34,7 @@
#if 0
static char sccsid[] = "@(#)misc.c 8.3 (Berkeley) 4/2/94";
#else
__RCSID("$NetBSD: misc.c,v 1.7 2003/08/07 11:13:22 agc Exp $");
__RCSID("$NetBSD: misc.c,v 1.8 2005/02/06 20:50:34 dsl Exp $");
#endif
#endif /* not lint */
@ -47,8 +47,7 @@ __RCSID("$NetBSD: misc.c,v 1.7 2003/08/07 11:13:22 agc Exp $");
#include "extern.h"
void
eofmsg(file)
char *file;
eofmsg(char *file)
{
if (!sflag)
warnx("EOF on %s", file);
@ -56,9 +55,7 @@ eofmsg(file)
}
void
diffmsg(file1, file2, byte, line)
char *file1, *file2;
off_t byte, line;
diffmsg(char *file1, char *file2, off_t byte, off_t line)
{
if (!sflag)
(void)printf("%s %s differ: char %lld, line %lld\n",

View File

@ -1,4 +1,4 @@
/* $NetBSD: regular.c,v 1.12 2003/08/07 11:13:23 agc Exp $ */
/* $NetBSD: regular.c,v 1.13 2005/02/06 20:50:34 dsl Exp $ */
/*-
* Copyright (c) 1991, 1993, 1994
@ -34,7 +34,7 @@
#if 0
static char sccsid[] = "@(#)regular.c 8.3 (Berkeley) 4/2/94";
#else
__RCSID("$NetBSD: regular.c,v 1.12 2003/08/07 11:13:23 agc Exp $");
__RCSID("$NetBSD: regular.c,v 1.13 2005/02/06 20:50:34 dsl Exp $");
#endif
#endif /* not lint */
@ -51,10 +51,8 @@ __RCSID("$NetBSD: regular.c,v 1.12 2003/08/07 11:13:23 agc Exp $");
#include "extern.h"
void
c_regular(fd1, file1, skip1, len1, fd2, file2, skip2, len2)
int fd1, fd2;
char *file1, *file2;
off_t skip1, len1, skip2, len2;
c_regular(int fd1, char *file1, off_t skip1, off_t len1,
int fd2, char *file2, off_t skip2, off_t len2)
{
u_char ch, *p1, *p2;
off_t byte, length, line;

View File

@ -1,4 +1,4 @@
/* $NetBSD: special.c,v 1.8 2003/08/07 11:13:23 agc Exp $ */
/* $NetBSD: special.c,v 1.9 2005/02/06 20:50:34 dsl Exp $ */
/*-
* Copyright (c) 1991, 1993, 1994
@ -34,7 +34,7 @@
#if 0
static char sccsid[] = "@(#)special.c 8.3 (Berkeley) 4/2/94";
#else
__RCSID("$NetBSD: special.c,v 1.8 2003/08/07 11:13:23 agc Exp $");
__RCSID("$NetBSD: special.c,v 1.9 2005/02/06 20:50:34 dsl Exp $");
#endif
#endif /* not lint */
@ -48,10 +48,7 @@ __RCSID("$NetBSD: special.c,v 1.8 2003/08/07 11:13:23 agc Exp $");
#include "extern.h"
void
c_special(fd1, file1, skip1, fd2, file2, skip2)
int fd1, fd2;
char *file1, *file2;
off_t skip1, skip2;
c_special(int fd1, char *file1, off_t skip1, int fd2, char *file2, off_t skip2)
{
int ch1, ch2;
off_t byte, line;