=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/who/who.c,v retrieving revision 1.15 retrieving revision 1.16 diff -c -r1.15 -r1.16 *** src/usr.bin/who/who.c 2003/06/03 02:56:23 1.15 --- src/usr.bin/who/who.c 2003/06/10 22:20:54 1.16 *************** *** 1,4 **** ! /* $OpenBSD: who.c,v 1.15 2003/06/03 02:56:23 millert Exp $ */ /* $NetBSD: who.c,v 1.4 1994/12/07 04:28:49 jtc Exp $ */ /* --- 1,4 ---- ! /* $OpenBSD: who.c,v 1.16 2003/06/10 22:20:54 deraadt Exp $ */ /* $NetBSD: who.c,v 1.4 1994/12/07 04:28:49 jtc Exp $ */ /* *************** *** 43,49 **** #if 0 static char sccsid[] = "@(#)who.c 8.1 (Berkeley) 6/6/93"; #endif ! static char rcsid[] = "$OpenBSD: who.c,v 1.15 2003/06/03 02:56:23 millert Exp $"; #endif /* not lint */ #include --- 43,49 ---- #if 0 static char sccsid[] = "@(#)who.c 8.1 (Berkeley) 6/6/93"; #endif ! static char rcsid[] = "$OpenBSD: who.c,v 1.16 2003/06/10 22:20:54 deraadt Exp $"; #endif /* not lint */ #include *************** *** 75,83 **** #define HOST_WIDTH 32 int ! main(argc, argv) ! int argc; ! char **argv; { struct utmp usr; FILE *ufp; --- 75,81 ---- #define HOST_WIDTH 32 int ! main(int argc, char *argv[]) { struct utmp usr; FILE *ufp; *************** *** 183,190 **** } void ! who_am_i(ufp) ! FILE *ufp; { struct utmp usr; struct passwd *pw; --- 181,187 ---- } void ! who_am_i(FILE *ufp) { struct utmp usr; struct passwd *pw; *************** *** 214,221 **** } void ! output(up) ! struct utmp *up; { struct stat sb; char line[sizeof(_PATH_DEV) + sizeof (up->ut_line)]; --- 211,217 ---- } void ! output(struct utmp *up) { struct stat sb; char line[sizeof(_PATH_DEV) + sizeof (up->ut_line)]; *************** *** 267,273 **** } void ! output_labels() { (void)printf("%-*.*s ", NAME_WIDTH, UT_NAMESIZE, "USER"); --- 263,269 ---- } void ! output_labels(void) { (void)printf("%-*.*s ", NAME_WIDTH, UT_NAMESIZE, "USER"); *************** *** 286,293 **** } FILE * ! file(name) ! char *name; { FILE *ufp; --- 282,288 ---- } FILE * ! file(char *name) { FILE *ufp; *************** *** 299,305 **** } void ! usage() { (void)fprintf(stderr, "usage: who [-mqTuH] [ file ]\n who am i\n"); exit(1); --- 294,300 ---- } void ! usage(void) { (void)fprintf(stderr, "usage: who [-mqTuH] [ file ]\n who am i\n"); exit(1);