summaryrefslogtreecommitdiffstats
path: root/usr.bin/ktrace/subr.c
diff options
context:
space:
mode:
authordwmalone <dwmalone@FreeBSD.org>2002-04-01 10:49:11 +0000
committerdwmalone <dwmalone@FreeBSD.org>2002-04-01 10:49:11 +0000
commit766bb4cc90ee3309d97621e8f9ef788d90adc653 (patch)
tree5ee40a23861b6ef442be55ef886ae9773b128c48 /usr.bin/ktrace/subr.c
parent3bbc58aa98d18a3a13ba8c3028396b3e16fe25dc (diff)
downloadFreeBSD-src-766bb4cc90ee3309d97621e8f9ef788d90adc653.zip
FreeBSD-src-766bb4cc90ee3309d97621e8f9ef788d90adc653.tar.gz
1) Clean up vendor and ID strings.
2) include stdlib.h for atoi. 3) staticise and constify. 4) add some missing prototypes. 5) add some parens to keep gcc happy.
Diffstat (limited to 'usr.bin/ktrace/subr.c')
-rw-r--r--usr.bin/ktrace/subr.c13
1 files changed, 11 insertions, 2 deletions
diff --git a/usr.bin/ktrace/subr.c b/usr.bin/ktrace/subr.c
index 4e4b3bf..f7c324c 100644
--- a/usr.bin/ktrace/subr.c
+++ b/usr.bin/ktrace/subr.c
@@ -35,10 +35,11 @@
#if 0
static char sccsid[] = "@(#)subr.c 8.1 (Berkeley) 6/6/93";
#endif
-static const char rcsid[] =
- "$FreeBSD$";
#endif /* not lint */
+#include <sys/cdefs.h>
+__FBSDID("$FreeBSD$");
+
#include <sys/param.h>
#include <sys/file.h>
#include <sys/user.h>
@@ -50,6 +51,11 @@ static const char rcsid[] =
#include "ktrace.h"
+void timevaladd(struct timeval *, struct timeval *);
+void timevalsub(struct timeval *, struct timeval *);
+void timevalfix(struct timeval *);
+
+int
getpoints(s)
char *s;
{
@@ -86,6 +92,7 @@ getpoints(s)
return (facs);
}
+void
timevaladd(t1, t2)
struct timeval *t1, *t2;
{
@@ -94,6 +101,7 @@ timevaladd(t1, t2)
timevalfix(t1);
}
+void
timevalsub(t1, t2)
struct timeval *t1, *t2;
{
@@ -102,6 +110,7 @@ timevalsub(t1, t2)
timevalfix(t1);
}
+void
timevalfix(t1)
struct timeval *t1;
{
OpenPOWER on IntegriCloud