diff options
author | stefanf <stefanf@FreeBSD.org> | 2005-02-10 09:13:20 +0000 |
---|---|---|
committer | stefanf <stefanf@FreeBSD.org> | 2005-02-10 09:13:20 +0000 |
commit | 7b37822a694ba18e94110b97e574dc91753e1d6c (patch) | |
tree | d528acdb2ae853e0173b334d3f014fe24443ba67 /usr.bin | |
parent | a49e78a185da61831aacebdec75a026a5cd96ebe (diff) | |
download | FreeBSD-src-7b37822a694ba18e94110b97e574dc91753e1d6c.zip FreeBSD-src-7b37822a694ba18e94110b97e574dc91753e1d6c.tar.gz |
Turn K&R functions into prototypes.
Diffstat (limited to 'usr.bin')
-rw-r--r-- | usr.bin/ipcs/ipcs.c | 23 |
1 files changed, 6 insertions, 17 deletions
diff --git a/usr.bin/ipcs/ipcs.c b/usr.bin/ipcs/ipcs.c index 465fe8f..e29eaeb 100644 --- a/usr.bin/ipcs/ipcs.c +++ b/usr.bin/ipcs/ipcs.c @@ -134,8 +134,7 @@ struct scgs_vector msginfo_scgsv[] = { MSGINFO_XVEC { NULL } }; static kvm_t *kd; char * -fmt_perm(mode) - u_short mode; +fmt_perm(u_short mode) { static char buffer[100]; @@ -155,9 +154,7 @@ fmt_perm(mode) } void -cvt_time(t, buf) - time_t t; - char *buf; +cvt_time(time_t t, char *buf) { struct tm *tm; @@ -183,9 +180,7 @@ cvt_time(t, buf) #define TIME 16 int -main(argc, argv) - int argc; - char *argv[]; +main(int argc, char *argv[]) { int display = SHMINFO | MSGINFO | SEMINFO; int option = 0; @@ -558,10 +553,7 @@ main(argc, argv) } void -sysctlgatherstruct(addr, size, vecarr) - void *addr; - size_t size; - struct scgs_vector *vecarr; +sysctlgatherstruct(void *addr, size_t size, struct scgs_vector *vecarr) { struct scgs_vector *xp; size_t tsiz; @@ -581,10 +573,7 @@ sysctlgatherstruct(addr, size, vecarr) } void -kget(idx, addr, size) - int idx; - void *addr; - size_t size; +kget(int idx, void *addr, size_t size) { char *symn; /* symbol name */ size_t tsiz; @@ -681,7 +670,7 @@ user2uid(char *username) } void -usage() +usage(void) { fprintf(stderr, |