summaryrefslogtreecommitdiffstats
path: root/usr.bin/ktrace/subr.c
diff options
context:
space:
mode:
authormarkm <markm@FreeBSD.org>2002-04-28 13:00:16 +0000
committermarkm <markm@FreeBSD.org>2002-04-28 13:00:16 +0000
commita735b516ebec1518595a2eb97a5ae183fd23eb76 (patch)
tree5c65f0d45ed0409c5af85c8f07289379f48a6eca /usr.bin/ktrace/subr.c
parent2f918abe2e1548bd71fae31eb0fda40c5b8d3e4b (diff)
downloadFreeBSD-src-a735b516ebec1518595a2eb97a5ae183fd23eb76.zip
FreeBSD-src-a735b516ebec1518595a2eb97a5ae183fd23eb76.tar.gz
Warnings fix; ANSIfy, constify, mark unused function parameter(s).
Diffstat (limited to 'usr.bin/ktrace/subr.c')
-rw-r--r--usr.bin/ktrace/subr.c12
1 files changed, 4 insertions, 8 deletions
diff --git a/usr.bin/ktrace/subr.c b/usr.bin/ktrace/subr.c
index f7c324c..3996914 100644
--- a/usr.bin/ktrace/subr.c
+++ b/usr.bin/ktrace/subr.c
@@ -56,8 +56,7 @@ void timevalsub(struct timeval *, struct timeval *);
void timevalfix(struct timeval *);
int
-getpoints(s)
- char *s;
+getpoints(char *s)
{
int facs = 0;
@@ -93,8 +92,7 @@ getpoints(s)
}
void
-timevaladd(t1, t2)
- struct timeval *t1, *t2;
+timevaladd(struct timeval *t1, struct timeval *t2)
{
t1->tv_sec += t2->tv_sec;
t1->tv_usec += t2->tv_usec;
@@ -102,8 +100,7 @@ timevaladd(t1, t2)
}
void
-timevalsub(t1, t2)
- struct timeval *t1, *t2;
+timevalsub(struct timeval *t1, struct timeval *t2)
{
t1->tv_sec -= t2->tv_sec;
t1->tv_usec -= t2->tv_usec;
@@ -111,8 +108,7 @@ timevalsub(t1, t2)
}
void
-timevalfix(t1)
- struct timeval *t1;
+timevalfix(struct timeval *t1)
{
if (t1->tv_usec < 0) {
t1->tv_sec--;
OpenPOWER on IntegriCloud