diff options
Diffstat (limited to 'usr.bin/ktrace/ktrace.c')
-rw-r--r-- | usr.bin/ktrace/ktrace.c | 20 |
1 files changed, 11 insertions, 9 deletions
diff --git a/usr.bin/ktrace/ktrace.c b/usr.bin/ktrace/ktrace.c index a3aa28d606c..349e26cae84 100644 --- a/usr.bin/ktrace/ktrace.c +++ b/usr.bin/ktrace/ktrace.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ktrace.c,v 1.10 2001/07/12 05:17:13 deraadt Exp $ */ +/* $OpenBSD: ktrace.c,v 1.11 2001/08/18 00:48:57 espie Exp $ */ /* $NetBSD: ktrace.c,v 1.4 1995/08/31 23:01:44 jtc Exp $ */ /*- @@ -44,7 +44,7 @@ static char copyright[] = #if 0 static char sccsid[] = "@(#)ktrace.c 8.2 (Berkeley) 4/28/95"; #endif -static char *rcsid = "$OpenBSD: ktrace.c,v 1.10 2001/07/12 05:17:13 deraadt Exp $"; +static char *rcsid = "$OpenBSD: ktrace.c,v 1.11 2001/08/18 00:48:57 espie Exp $"; #endif /* not lint */ #include <sys/param.h> @@ -61,9 +61,11 @@ static char *rcsid = "$OpenBSD: ktrace.c,v 1.10 2001/07/12 05:17:13 deraadt Exp #include <unistd.h> #include "ktrace.h" +#include "extern.h" -void no_ktrace __P((int)); -void usage __P((void)); +static int rpid __P((const char *)); +static void no_ktrace __P((int)); +static void usage __P((void)); int main(argc, argv) @@ -123,7 +125,7 @@ main(argc, argv) argv += optind; argc -= optind; - if (pidset && *argv || !pidset && !*argv) + if ((pidset && *argv) || (!pidset && !*argv)) usage(); if (inherit) @@ -171,9 +173,9 @@ main(argc, argv) exit(0); } -int +static int rpid(p) - char *p; + const char *p; { static int first; @@ -188,7 +190,7 @@ rpid(p) return(atoi(p)); } -void +static void usage() { (void)fprintf(stderr, @@ -196,7 +198,7 @@ usage() exit(1); } -void +static void no_ktrace(sig) int sig; { |