summaryrefslogtreecommitdiffstats
path: root/usr.bin
diff options
context:
space:
mode:
authorkris <kris@FreeBSD.org>2000-07-10 08:42:58 +0000
committerkris <kris@FreeBSD.org>2000-07-10 08:42:58 +0000
commitcbf1c5013e356d17b5f8658becc7411fdec79850 (patch)
tree8fea3f14daf3152fa4fcdfb2a45d28c5c5cc9bb5 /usr.bin
parent4f24653720b28a2f9804fc12b421e0c12fa87ce5 (diff)
downloadFreeBSD-src-cbf1c5013e356d17b5f8658becc7411fdec79850.zip
FreeBSD-src-cbf1c5013e356d17b5f8658becc7411fdec79850.tar.gz
Don't call err() with no format string.
Diffstat (limited to 'usr.bin')
-rw-r--r--usr.bin/biff/biff.c4
-rw-r--r--usr.bin/colcrt/colcrt.c6
2 files changed, 7 insertions, 3 deletions
diff --git a/usr.bin/biff/biff.c b/usr.bin/biff/biff.c
index 606afa8..718263f5 100644
--- a/usr.bin/biff/biff.c
+++ b/usr.bin/biff/biff.c
@@ -87,11 +87,11 @@ main(argc, argv)
switch(argv[0][0]) {
case 'n':
if (chmod(name, sb.st_mode & ~0100) < 0)
- err(2, name);
+ err(2, "%s", name);
break;
case 'y':
if (chmod(name, sb.st_mode | 0100) < 0)
- err(2, name);
+ err(2, "%s", name);
break;
default:
usage();
diff --git a/usr.bin/colcrt/colcrt.c b/usr.bin/colcrt/colcrt.c
index c165177..67f4b06 100644
--- a/usr.bin/colcrt/colcrt.c
+++ b/usr.bin/colcrt/colcrt.c
@@ -38,7 +38,11 @@ static const char copyright[] =
#endif /* not lint */
#ifndef lint
+#if 0
static const char sccsid[] = "@(#)colcrt.c 8.1 (Berkeley) 6/6/93";
+#endif
+static const char rcsid[] =
+ "$FreeBSD$";
#endif /* not lint */
#include <err.h>
@@ -104,7 +108,7 @@ main(argc, argv)
close(0);
if (!(f = fopen(argv[0], "r"))) {
fflush(stdout);
- err(1, argv[0]);
+ err(1, "%s", argv[0]);
}
argc--;
argv++;
OpenPOWER on IntegriCloud