diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 2004-07-09 16:22:05 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 2004-07-09 16:22:05 +0000 |
commit | aeb42ec02f4adbf043b21363d6e3bb748890a2bd (patch) | |
tree | ca1c0079db0995f827f42e66bfc8bbf2b7bfff3c /usr.sbin/eeprom | |
parent | 8fac7a79c461e0c60d0325f70e0dc67a94da5d4c (diff) |
ansi
Diffstat (limited to 'usr.sbin/eeprom')
-rw-r--r-- | usr.sbin/eeprom/eehandlers.c | 60 | ||||
-rw-r--r-- | usr.sbin/eeprom/main.c | 15 | ||||
-rw-r--r-- | usr.sbin/eeprom/ophandlers.c | 12 |
3 files changed, 26 insertions, 61 deletions
diff --git a/usr.sbin/eeprom/eehandlers.c b/usr.sbin/eeprom/eehandlers.c index 00b2f06c0cf..fd97f2947eb 100644 --- a/usr.sbin/eeprom/eehandlers.c +++ b/usr.sbin/eeprom/eehandlers.c @@ -1,4 +1,4 @@ -/* $OpenBSD: eehandlers.c,v 1.10 2002/05/30 19:09:05 deraadt Exp $ */ +/* $OpenBSD: eehandlers.c,v 1.11 2004/07/09 16:22:02 deraadt Exp $ */ /* $NetBSD: eehandlers.c,v 1.2 1996/02/28 01:13:22 thorpej Exp $ */ /*- @@ -93,9 +93,7 @@ static int doio(struct keytabent *, u_char *, ssize_t, int); } void -ee_hwupdate(ktent, arg) - struct keytabent *ktent; - char *arg; +ee_hwupdate(struct keytabent *ktent, char *arg) { time_t t; char *cp, *cp2; @@ -126,9 +124,7 @@ ee_hwupdate(ktent, arg) } void -ee_num8(ktent, arg) - struct keytabent *ktent; - char *arg; +ee_num8(struct keytabent *ktent, char *arg) { u_char num8 = 0; u_int num32; @@ -152,9 +148,7 @@ ee_num8(ktent, arg) } void -ee_num16(ktent, arg) - struct keytabent *ktent; - char *arg; +ee_num16(struct keytabent *ktent, char *arg) { u_int16_t num16 = 0; u_int num32; @@ -189,9 +183,7 @@ static struct strvaltabent scrsizetab[] = { }; void -ee_screensize(ktent, arg) - struct keytabent *ktent; - char *arg; +ee_screensize(struct keytabent *ktent, char *arg) { struct strvaltabent *svp; u_char scsize; @@ -230,9 +222,7 @@ static struct strvaltabent truthtab[] = { }; void -ee_truefalse(ktent, arg) - struct keytabent *ktent; - char *arg; +ee_truefalse(struct keytabent *ktent, char *arg) { struct strvaltabent *svp; u_char truth; @@ -264,9 +254,7 @@ ee_truefalse(ktent, arg) } void -ee_bootdev(ktent, arg) - struct keytabent *ktent; - char *arg; +ee_bootdev(struct keytabent *ktent, char *arg) { u_char dev[5]; int i; @@ -336,9 +324,7 @@ ee_bootdev(ktent, arg) } void -ee_kbdtype(ktent, arg) - struct keytabent *ktent; - char *arg; +ee_kbdtype(struct keytabent *ktent, char *arg) { u_char kbd = 0; u_int kbd2; @@ -372,9 +358,7 @@ static struct strvaltabent constab[] = { }; void -ee_constype(ktent, arg) - struct keytabent *ktent; - char *arg; +ee_constype(struct keytabent *ktent, char *arg) { struct strvaltabent *svp; u_char cons; @@ -408,9 +392,7 @@ ee_constype(ktent, arg) #endif void -ee_diagpath(ktent, arg) - struct keytabent *ktent; - char *arg; +ee_diagpath(struct keytabent *ktent, char *arg) { char path[40]; @@ -429,9 +411,7 @@ ee_diagpath(ktent, arg) } void -ee_banner(ktent, arg) - struct keytabent *ktent; - char *arg; +ee_banner(struct keytabent *ktent, char *arg) { char string[80]; u_char enable; @@ -472,18 +452,14 @@ ee_banner(ktent, arg) /* ARGSUSED */ void -ee_notsupp(ktent, arg) - struct keytabent *ktent; - char *arg; +ee_notsupp(struct keytabent *ktent, char *arg) { warnx("field `%s' not yet supported", ktent->kt_keyword); } static void -badval(ktent, arg) - struct keytabent *ktent; - char *arg; +badval(struct keytabent *ktent, char *arg) { warnx("inappropriate value `%s' for field `%s'", arg, @@ -491,11 +467,7 @@ badval(ktent, arg) } static int -doio(ktent, buf, len, wr) - struct keytabent *ktent; - u_char *buf; - ssize_t len; - int wr; +doio(struct keytabent *ktent, u_char *buf, ssize_t len, int wr) { int fd, rval = 0; u_char *buf2; @@ -561,7 +533,7 @@ doio(ktent, buf, len, wr) * of it sequentially starting at eeWriteCount[0]. */ void -ee_updatechecksums() +ee_updatechecksums(void) { struct keytabent kt; u_char checkme[EE_SIZE - EE_HWUPDATE_LOC]; @@ -600,7 +572,7 @@ ee_updatechecksums() } void -ee_verifychecksums() +ee_verifychecksums(void) { struct keytabent kt; u_char checkme[EE_SIZE - EE_HWUPDATE_LOC]; diff --git a/usr.sbin/eeprom/main.c b/usr.sbin/eeprom/main.c index deb06e9d8a3..af4aa119372 100644 --- a/usr.sbin/eeprom/main.c +++ b/usr.sbin/eeprom/main.c @@ -1,4 +1,4 @@ -/* $OpenBSD: main.c,v 1.11 2003/09/26 16:09:27 deraadt Exp $ */ +/* $OpenBSD: main.c,v 1.12 2004/07/09 16:22:02 deraadt Exp $ */ /* $NetBSD: main.c,v 1.3 1996/05/16 16:00:55 thorpej Exp $ */ /*- @@ -115,9 +115,7 @@ int verbose = 0; extern char *__progname; int -main(argc, argv) - int argc; - char **argv; +main(int argc, char *argv[]) { int ch, do_stdin = 0; char *cp, line[BUFSIZE]; @@ -211,7 +209,7 @@ main(argc, argv) #ifdef __sparc__ static int -getcputype() +getcputype(void) { int mib[2]; size_t len; @@ -232,8 +230,7 @@ getcputype() * the table, and call the corresponding handler function. */ static void -action(line) - char *line; +action(char *line) { char *keyword, *arg, *cp; struct keytabent *ktent; @@ -272,7 +269,7 @@ action(line) * Dump the contents of the prom corresponding to all known keywords. */ static void -dump_prom() +dump_prom(void) { struct keytabent *ktent; @@ -289,7 +286,7 @@ dump_prom() } static void -usage() +usage(void) { #ifdef __sparc__ diff --git a/usr.sbin/eeprom/ophandlers.c b/usr.sbin/eeprom/ophandlers.c index 47ed0f71a97..c69004aed88 100644 --- a/usr.sbin/eeprom/ophandlers.c +++ b/usr.sbin/eeprom/ophandlers.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ophandlers.c,v 1.7 2003/11/27 10:36:01 henning Exp $ */ +/* $OpenBSD: ophandlers.c,v 1.8 2004/07/09 16:22:02 deraadt Exp $ */ /* $NetBSD: ophandlers.c,v 1.2 1996/02/28 01:13:30 thorpej Exp $ */ /*- @@ -77,8 +77,7 @@ static struct extabent opextab[] = { }; char * -op_handler(keyword, arg) - char *keyword, *arg; +op_handler(char *keyword, char *arg) { struct opiocdesc opio; struct extabent *ex; @@ -164,10 +163,7 @@ op_handler(keyword, arg) /* ARGSUSED */ static void -op_notsupp(exent, opiop, arg) - struct extabent *exent; - struct opiocdesc *opiop; - char *arg; +op_notsupp(struct extabent *exent, struct opiocdesc *opiop, char *arg) { warnx("property `%s' not yet supported", exent->ex_keyword); @@ -178,7 +174,7 @@ op_notsupp(exent, opiop, arg) * (Really! This is the only way I could get it to work!) */ void -op_dump() +op_dump(void) { struct opiocdesc opio1, opio2; struct extabent *ex; |