diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 2002-07-03 22:32:35 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 2002-07-03 22:32:35 +0000 |
commit | a9a4354fed4cec65ca359fe04095a7a7d4823a8a (patch) | |
tree | 0fedc69061ae9a279d3db23f185ff0b038a706d9 /sbin/kbd | |
parent | 4c287e033bc1d7be66ec3f6c6735246a781a9e08 (diff) |
ansi
Diffstat (limited to 'sbin/kbd')
-rw-r--r-- | sbin/kbd/kbd_sparc.c | 10 | ||||
-rw-r--r-- | sbin/kbd/kbd_wscons.c | 12 | ||||
-rw-r--r-- | sbin/kbd/main.c | 8 |
3 files changed, 11 insertions, 19 deletions
diff --git a/sbin/kbd/kbd_sparc.c b/sbin/kbd/kbd_sparc.c index 2ca19e12409..3dce5366567 100644 --- a/sbin/kbd/kbd_sparc.c +++ b/sbin/kbd/kbd_sparc.c @@ -1,4 +1,4 @@ -/* $OpenBSD: kbd_sparc.c,v 1.6 2002/06/09 08:13:07 todd Exp $ */ +/* $OpenBSD: kbd_sparc.c,v 1.7 2002/07/03 22:32:33 deraadt Exp $ */ /* * Copyright (c) 1999 Mats O Jansson. All rights reserved. @@ -150,7 +150,7 @@ struct { extern char *__progname; char * -kbd_find_default() +kbd_find_default(void) { int i, j, fd, r, ok; int t = KB_SUN4; @@ -184,7 +184,7 @@ kbd_find_default() } void -kbd_list() +kbd_list(void) { int i, j; char *defmap; @@ -203,9 +203,7 @@ kbd_list() } void -kbd_set(name, verbose) - char *name; - int verbose; +kbd_set(char *name, int verbose) { int i, j, fd, r; keymap_t *map = NULL; diff --git a/sbin/kbd/kbd_wscons.c b/sbin/kbd/kbd_wscons.c index bcde7e7e846..dc88f905748 100644 --- a/sbin/kbd/kbd_wscons.c +++ b/sbin/kbd/kbd_wscons.c @@ -1,4 +1,4 @@ -/* $OpenBSD: kbd_wscons.c,v 1.8 2002/05/29 20:45:58 maja Exp $ */ +/* $OpenBSD: kbd_wscons.c,v 1.9 2002/07/03 22:32:33 deraadt Exp $ */ /* * Copyright (c) 2001 Mats O Jansson. All rights reserved. @@ -94,9 +94,7 @@ int rebuild = 0; #ifndef NOKVM void -kbd_show_enc(kd, idx) - kvm_t *kd; - int idx; +kbd_show_enc(kvm_t *kd, int idx) { struct wscons_keydesc r; unsigned long p; @@ -145,7 +143,7 @@ kbd_show_enc(kd, idx) #endif void -kbd_list() +kbd_list(void) { int fd, i, kbtype, ret; kvm_t *kd; @@ -220,9 +218,7 @@ kbd_list() } void -kbd_set(name, verbose) - char *name; - int verbose; +kbd_set(char *name, int verbose) { char buf[_POSIX2_LINE_MAX]; char *c,*b; diff --git a/sbin/kbd/main.c b/sbin/kbd/main.c index 85a0f946fcf..9e6982a10b3 100644 --- a/sbin/kbd/main.c +++ b/sbin/kbd/main.c @@ -1,4 +1,4 @@ -/* $OpenBSD: main.c,v 1.4 2002/02/16 21:27:35 millert Exp $ */ +/* $OpenBSD: main.c,v 1.5 2002/07/03 22:32:33 deraadt Exp $ */ /* * Copyright (c) 1996 Juergen Hannken-Illjes @@ -41,7 +41,7 @@ extern void kbd_set(char *, int); extern char *__progname; static void -usage() +usage(void) { fprintf(stderr, "usage: %s -l or %s [-q] name\n", __progname, __progname); @@ -49,9 +49,7 @@ usage() } int -main(argc, argv) - int argc; - char **argv; +main(int argc, char *argv[]) { char *optstring = "lq"; int ch, list_tables, verbose; |