From 51c6f5e0f5f6f300b649e518110808b2b6142098 Mon Sep 17 00:00:00 2001 From: Marc Espie Date: Sat, 18 Aug 2001 00:48:58 +0000 Subject: Add lots of missing prototypes, constify a few things. Add explicit ints. Makes gcc much happier, less warnings. --- usr.bin/ktrace/subr.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'usr.bin/ktrace/subr.c') 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 @@ -51,10 +51,11 @@ static char *rcsid = "$OpenBSD: subr.c,v 1.3 2001/07/12 05:17:13 deraadt Exp $"; #include #include "ktrace.h" +#include "extern.h" int getpoints(s) - char *s; + const char *s; { int facs = 0; -- cgit v1.2.3