summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorjdp <jdp@FreeBSD.org>1997-11-18 03:37:45 +0000
committerjdp <jdp@FreeBSD.org>1997-11-18 03:37:45 +0000
commit8a7bf8aff18b3c6495bad5c4937a80b55f807281 (patch)
tree9a354c934572c12c375d70df914ada0a5cf037a1
parent49b9936776f264f2e03d2605fd0b1e346ffbc4f0 (diff)
downloadFreeBSD-src-8a7bf8aff18b3c6495bad5c4937a80b55f807281.zip
FreeBSD-src-8a7bf8aff18b3c6495bad5c4937a80b55f807281.tar.gz
Add missing argument detected by "-Wformat".
-rw-r--r--gnu/usr.bin/man/man/man.c2
-rw-r--r--sbin/sysctl/sysctl.c5
-rw-r--r--usr.sbin/sysctl/sysctl.c5
3 files changed, 7 insertions, 5 deletions
diff --git a/gnu/usr.bin/man/man/man.c b/gnu/usr.bin/man/man/man.c
index d463f65..6407939 100644
--- a/gnu/usr.bin/man/man/man.c
+++ b/gnu/usr.bin/man/man/man.c
@@ -1251,7 +1251,7 @@ format_and_display (path, man_file, cat_file)
{
status = is_newer (man_file, cat_file);
if (debug)
- fprintf (stderr, "status from is_newer() = %d\n");
+ fprintf (stderr, "status from is_newer() = %d\n", status);
if (status == 1 || status == -2)
{
diff --git a/sbin/sysctl/sysctl.c b/sbin/sysctl/sysctl.c
index ef0996a..47c82bf 100644
--- a/sbin/sysctl/sysctl.c
+++ b/sbin/sysctl/sysctl.c
@@ -42,7 +42,7 @@ static const char copyright[] =
static char sccsid[] = "@(#)from: sysctl.c 8.1 (Berkeley) 6/6/93";
#endif
static const char rcsid[] =
- "$Id$";
+ "$Id: sysctl.c,v 1.15 1997/10/20 12:53:54 charnier Exp $";
#endif /* not lint */
#include <sys/types.h>
@@ -179,7 +179,8 @@ parse(char *string)
break;
default:
errx(1, "oid '%s' is type %d,"
- " cannot set that", bufp);
+ " cannot set that", bufp,
+ kind & CTLTYPE);
}
i = show_var(mib, len);
diff --git a/usr.sbin/sysctl/sysctl.c b/usr.sbin/sysctl/sysctl.c
index ef0996a..47c82bf 100644
--- a/usr.sbin/sysctl/sysctl.c
+++ b/usr.sbin/sysctl/sysctl.c
@@ -42,7 +42,7 @@ static const char copyright[] =
static char sccsid[] = "@(#)from: sysctl.c 8.1 (Berkeley) 6/6/93";
#endif
static const char rcsid[] =
- "$Id$";
+ "$Id: sysctl.c,v 1.15 1997/10/20 12:53:54 charnier Exp $";
#endif /* not lint */
#include <sys/types.h>
@@ -179,7 +179,8 @@ parse(char *string)
break;
default:
errx(1, "oid '%s' is type %d,"
- " cannot set that", bufp);
+ " cannot set that", bufp,
+ kind & CTLTYPE);
}
i = show_var(mib, len);
OpenPOWER on IntegriCloud