diff options
author | Marc Espie <espie@cvs.openbsd.org> | 2001-08-18 00:48:58 +0000 |
---|---|---|
committer | Marc Espie <espie@cvs.openbsd.org> | 2001-08-18 00:48:58 +0000 |
commit | 51c6f5e0f5f6f300b649e518110808b2b6142098 (patch) | |
tree | ef4493f33798663d78e64da953be0b0a0532567b /usr.bin/ktrace/subr.c | |
parent | fdaeb3d021ec2144bc6bf1bc3bd2686bdf31734a (diff) |
Add lots of missing prototypes, constify a few things. Add explicit ints.
Makes gcc much happier, less warnings.
Diffstat (limited to 'usr.bin/ktrace/subr.c')
-rw-r--r-- | usr.bin/ktrace/subr.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/usr.bin/ktrace/subr.c b/usr.bin/ktrace/subr.c index 5965c3c5789..80d51d0f10d 100644 --- a/usr.bin/ktrace/subr.c +++ b/usr.bin/ktrace/subr.c @@ -1,4 +1,4 @@ -/* $OpenBSD: subr.c,v 1.3 2001/07/12 05:17:13 deraadt Exp $ */ +/* $OpenBSD: subr.c,v 1.4 2001/08/18 00:48:57 espie Exp $ */ /* $NetBSD: subr.c,v 1.6 1995/08/31 23:01:45 jtc Exp $ */ /*- @@ -38,7 +38,7 @@ #if 0 static char sccsid[] = "@(#)subr.c 8.2 (Berkeley) 4/28/95"; #endif -static char *rcsid = "$OpenBSD: subr.c,v 1.3 2001/07/12 05:17:13 deraadt Exp $"; +static char *rcsid = "$OpenBSD: subr.c,v 1.4 2001/08/18 00:48:57 espie Exp $"; #endif /* not lint */ #include <sys/param.h> @@ -51,10 +51,11 @@ static char *rcsid = "$OpenBSD: subr.c,v 1.3 2001/07/12 05:17:13 deraadt Exp $"; #include <stdio.h> #include "ktrace.h" +#include "extern.h" int getpoints(s) - char *s; + const char *s; { int facs = 0; |