From 086ad217b2fc764e9552c554351481cc5941ecbf Mon Sep 17 00:00:00 2001
From: Dima Dorfman
Date: Sun, 15 Jul 2001 05:41:57 +0000
Subject: [PATCH] Fix a prototype and set WARNS=2.
Submitted by: Mike Barcroft
---
sbin/adjkerntz/Makefile | 2 +-
sbin/adjkerntz/adjkerntz.c | 9 ++++++++-
2 files changed, 9 insertions(+), 2 deletions(-)
diff --git a/sbin/adjkerntz/Makefile b/sbin/adjkerntz/Makefile
index cf4046188d4c..d254dcc2a8d2 100644
--- a/sbin/adjkerntz/Makefile
+++ b/sbin/adjkerntz/Makefile
@@ -1,7 +1,7 @@
# $FreeBSD$
PROG= adjkerntz
+WARNS?= 2
MAN= adjkerntz.8
-CFLAGS+= -Wall
.include
diff --git a/sbin/adjkerntz/adjkerntz.c b/sbin/adjkerntz/adjkerntz.c
index 743782a66f5d..63d4fa31862a 100644
--- a/sbin/adjkerntz/adjkerntz.c
+++ b/sbin/adjkerntz/adjkerntz.c
@@ -65,9 +65,16 @@ static const char rcsid[] =
#define REPORT_PERIOD (30*60)
+static void fake __P((int));
static void usage __P((void));
-void fake() {}
+static void
+fake(unused)
+ int unused __unused;
+{
+
+ /* Do nothing. */
+}
int main(argc, argv)
int argc;