Un-__P and ANSIfy.

This commit is contained in:
mjl 2000-10-04 18:52:50 +00:00
parent cc135eb39f
commit 7627a9213f

View File

@ -1,4 +1,4 @@
/* $NetBSD: comsat.c,v 1.16 2000/10/04 18:24:03 mjl Exp $ */ /* $NetBSD: comsat.c,v 1.17 2000/10/04 18:52:50 mjl Exp $ */
/* /*
* Copyright (c) 1980, 1993 * Copyright (c) 1980, 1993
@ -40,7 +40,7 @@ __COPYRIGHT("@(#) Copyright (c) 1980, 1993\n\
#if 0 #if 0
static char sccsid[] = "from: @(#)comsat.c 8.1 (Berkeley) 6/4/93"; static char sccsid[] = "from: @(#)comsat.c 8.1 (Berkeley) 6/4/93";
#else #else
__RCSID("$NetBSD: comsat.c,v 1.16 2000/10/04 18:24:03 mjl Exp $"); __RCSID("$NetBSD: comsat.c,v 1.17 2000/10/04 18:52:50 mjl Exp $");
#endif #endif
#endif /* not lint */ #endif /* not lint */
@ -79,17 +79,14 @@ struct utmp *utmp = NULL;
time_t lastmsgtime; time_t lastmsgtime;
int nutmp, uf; int nutmp, uf;
void jkfprintf __P((FILE *, char[], off_t)); void jkfprintf (FILE *, char[], off_t);
void mailfor __P((char *)); void mailfor (char *);
void notify __P((struct utmp *, off_t)); void notify (struct utmp *, off_t);
void onalrm __P((int)); void onalrm (int);
void reapchildren __P((int)); void reapchildren (int);
int main __P((int, char *[]));
int int
main(argc, argv) main(int argc, char *argv[])
int argc;
char *argv[];
{ {
struct sockaddr_storage from; struct sockaddr_storage from;
int cc, ch; int cc, ch;
@ -155,16 +152,14 @@ main(argc, argv)
} }
void void
reapchildren(signo) reapchildren(int signo)
int signo;
{ {
while (wait3(NULL, WNOHANG, NULL) > 0); while (wait3(NULL, WNOHANG, NULL) > 0);
} }
void void
onalrm(signo) onalrm(int signo)
int signo;
{ {
static u_int utmpsize; /* last malloced size for utmp */ static u_int utmpsize; /* last malloced size for utmp */
static u_int utmpmtime; /* last modification time for utmp */ static u_int utmpmtime; /* last modification time for utmp */
@ -189,8 +184,7 @@ onalrm(signo)
} }
void void
mailfor(name) mailfor(char *name)
char *name;
{ {
struct utmp *utp = &utmp[nutmp]; struct utmp *utp = &utmp[nutmp];
char *cp; char *cp;
@ -208,9 +202,7 @@ mailfor(name)
static char *cr; static char *cr;
void void
notify(utp, offset) notify(struct utmp *utp, off_t offset)
struct utmp *utp;
off_t offset;
{ {
FILE *tp; FILE *tp;
struct passwd *p; struct passwd *p;
@ -266,10 +258,7 @@ notify(utp, offset)
} }
void void
jkfprintf(tp, name, offset) jkfprintf(FILE *tp, char name[], off_t offset)
FILE *tp;
char name[];
off_t offset;
{ {
FILE *fi; FILE *fi;
int linecnt, charcnt, inheader; int linecnt, charcnt, inheader;