diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 2003-06-26 21:36:41 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 2003-06-26 21:36:41 +0000 |
commit | b61c91f7c8732b64fc79e49a3ea1763cc74b982d (patch) | |
tree | 11356c23b7f67afc29f39652db658ec10c8f1038 /usr.sbin/timed/timedc | |
parent | 26bb9abfb883294bce86a165311e087516d3c89a (diff) |
ansi and protos
Diffstat (limited to 'usr.sbin/timed/timedc')
-rw-r--r-- | usr.sbin/timed/timedc/cmds.c | 6 | ||||
-rw-r--r-- | usr.sbin/timed/timedc/timedc-extern.h | 4 | ||||
-rw-r--r-- | usr.sbin/timed/timedc/timedc.c | 4 | ||||
-rw-r--r-- | usr.sbin/timed/timedc/timedc.h | 4 |
4 files changed, 9 insertions, 9 deletions
diff --git a/usr.sbin/timed/timedc/cmds.c b/usr.sbin/timed/timedc/cmds.c index 8fb3be6ce7c..04dc8c78871 100644 --- a/usr.sbin/timed/timedc/cmds.c +++ b/usr.sbin/timed/timedc/cmds.c @@ -1,4 +1,4 @@ -/* $OpenBSD: cmds.c,v 1.17 2003/06/12 21:09:48 deraadt Exp $ */ +/* $OpenBSD: cmds.c,v 1.18 2003/06/26 21:36:40 deraadt Exp $ */ /*- * Copyright (c) 1985, 1993 The Regents of the University of California. @@ -34,7 +34,7 @@ static char sccsid[] = "@(#)cmds.c 5.1 (Berkeley) 5/11/93"; #endif /* not lint */ #ifdef sgi -#ident "$Revision: 1.17 $" +#ident "$Revision: 1.18 $" #endif #include "timedc.h" @@ -396,7 +396,7 @@ bail: * quits timedc */ void -quit(void) +quit(int ignored, char *unused[]) { exit(0); } diff --git a/usr.sbin/timed/timedc/timedc-extern.h b/usr.sbin/timed/timedc/timedc-extern.h index cd47e2a47fd..271ef057029 100644 --- a/usr.sbin/timed/timedc/timedc-extern.h +++ b/usr.sbin/timed/timedc/timedc-extern.h @@ -1,4 +1,4 @@ -/* $OpenBSD: timedc-extern.h,v 1.5 2003/06/02 23:36:55 millert Exp $ */ +/* $OpenBSD: timedc-extern.h,v 1.6 2003/06/26 21:36:40 deraadt Exp $ */ /*- * Copyright (c) 1993 The Regents of the University of California. @@ -39,7 +39,7 @@ void clockdiff(int, char *[]); void help(int, char *[]); void makeargv(void); void msite(int, char *[]); -void quit(void); +void quit(int, char *[]); void testing(int, char *[]); void tracing(int, char *[]); diff --git a/usr.sbin/timed/timedc/timedc.c b/usr.sbin/timed/timedc/timedc.c index 6233dbe0efd..7b2bae9b4d5 100644 --- a/usr.sbin/timed/timedc/timedc.c +++ b/usr.sbin/timed/timedc/timedc.c @@ -1,4 +1,4 @@ -/* $OpenBSD: timedc.c,v 1.10 2003/06/12 21:09:48 deraadt Exp $ */ +/* $OpenBSD: timedc.c,v 1.11 2003/06/26 21:36:40 deraadt Exp $ */ /*- * Copyright (c) 1985, 1993 The Regents of the University of California. @@ -127,7 +127,7 @@ main(int argc, char *argv[]) siginterrupt(SIGINT, 0); continue; } - quit(); + quit(0, NULL); } siginterrupt(SIGINT, 0); diff --git a/usr.sbin/timed/timedc/timedc.h b/usr.sbin/timed/timedc/timedc.h index 7895df7e24f..690fc38710f 100644 --- a/usr.sbin/timed/timedc/timedc.h +++ b/usr.sbin/timed/timedc/timedc.h @@ -1,4 +1,4 @@ -/* $OpenBSD: timedc.h,v 1.4 2003/06/02 23:36:55 millert Exp $ */ +/* $OpenBSD: timedc.h,v 1.5 2003/06/26 21:36:40 deraadt Exp $ */ /*- * Copyright (c) 1985, 1993 The Regents of the University of California. @@ -57,7 +57,7 @@ extern int errno; struct cmd { char *c_name; /* command name */ char *c_help; /* help message */ - void (*c_handler)(); /* routine to do the work */ + void (*c_handler)(int, char **); /* routine to do the work */ int c_priv; /* privileged command */ }; |