diff options
author | Marco S Hyman <marc@cvs.openbsd.org> | 2002-07-19 19:28:13 +0000 |
---|---|---|
committer | Marco S Hyman <marc@cvs.openbsd.org> | 2002-07-19 19:28:13 +0000 |
commit | 4949dbe071951e4093685c0e84a63dc5451eca45 (patch) | |
tree | 531eb3504f538dd7365ed53dd7799f381ed067ea /gnu/usr.bin/ld/ldd | |
parent | 2cb47dcca29852637cb080135bb980889a2e08f4 (diff) |
convert functions from K&R style to prototype style.
Function arg types have not yet been fixed. OK fgs@, espie@
Diffstat (limited to 'gnu/usr.bin/ld/ldd')
-rw-r--r-- | gnu/usr.bin/ld/ldd/ldd.c | 8 | ||||
-rw-r--r-- | gnu/usr.bin/ld/ldd/scanlib.c | 10 |
2 files changed, 6 insertions, 12 deletions
diff --git a/gnu/usr.bin/ld/ldd/ldd.c b/gnu/usr.bin/ld/ldd/ldd.c index 3d78cacb26b..2ae8f91295c 100644 --- a/gnu/usr.bin/ld/ldd/ldd.c +++ b/gnu/usr.bin/ld/ldd/ldd.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ldd.c,v 1.10 2002/07/15 21:05:57 marc Exp $ */ +/* $OpenBSD: ldd.c,v 1.11 2002/07/19 19:28:12 marc Exp $ */ /* $NetBSD: ldd.c,v 1.12 1995/10/09 00:14:41 pk Exp $ */ /* * Copyright (c) 1993 Paul Kranenburg @@ -48,7 +48,7 @@ extern void scan_library(int, struct exec *, const char *, const char *, const char *); void -usage() +usage(void) { extern char *__progname; @@ -57,9 +57,7 @@ usage() } int -main(argc, argv) -int argc; -char *argv[]; +main(int argc, char *argv[]) { char *fmt1 = NULL, *fmt2 = NULL; int rval; diff --git a/gnu/usr.bin/ld/ldd/scanlib.c b/gnu/usr.bin/ld/ldd/scanlib.c index f9d0557dd33..a28e11ef7eb 100644 --- a/gnu/usr.bin/ld/ldd/scanlib.c +++ b/gnu/usr.bin/ld/ldd/scanlib.c @@ -1,4 +1,4 @@ -/* $OpenBSD: scanlib.c,v 1.3 2002/07/15 21:05:57 marc Exp $ */ +/* $OpenBSD: scanlib.c,v 1.4 2002/07/19 19:28:12 marc Exp $ */ /* * Copyright (c) 2001 Marc Espie. @@ -36,12 +36,8 @@ #include <link.h> void -scan_library(fd, hdr, name, fmt1, fmt2) - int fd; - struct exec *hdr; - const char *name; - const char *fmt1; - const char *fmt2; +scan_library(int fd, struct exec *hdr, const char *name, const char *fmt1, + const char *fmt2) { struct _dynamic dyn; struct section_dispatch_table sdt; |