summaryrefslogtreecommitdiffstats
path: root/usr.bin/key/skey.c
diff options
context:
space:
mode:
authorcharnier <charnier@FreeBSD.org>2000-12-10 20:52:43 +0000
committercharnier <charnier@FreeBSD.org>2000-12-10 20:52:43 +0000
commit1a7832d52733a1b945f4c6806e25643560852460 (patch)
treedfab064717fc63ed3c1bfaba54e8da6b7fd3cc9d /usr.bin/key/skey.c
parentb022d1d27e2a42e93ab520d233de00d72a07feea (diff)
downloadFreeBSD-src-1a7832d52733a1b945f4c6806e25643560852460.zip
FreeBSD-src-1a7832d52733a1b945f4c6806e25643560852460.tar.gz
Remove one more incorrect section name. Typos.
Add rcsid. fprintf -> warn.
Diffstat (limited to 'usr.bin/key/skey.c')
-rw-r--r--usr.bin/key/skey.c11
1 files changed, 8 insertions, 3 deletions
diff --git a/usr.bin/key/skey.c b/usr.bin/key/skey.c
index 42ef6c5..6dc5a0a 100644
--- a/usr.bin/key/skey.c
+++ b/usr.bin/key/skey.c
@@ -10,6 +10,11 @@
* >
*/
+#ifndef lint
+static const char rcsid[] =
+ "$FreeBSD$";
+#endif /* not lint */
+
#include <err.h>
#include <stdio.h>
#include <stdlib.h>
@@ -18,7 +23,7 @@
#ifdef __MSDOS__
#include <dos.h>
-#else /* Assume BSD unix */
+#else /* Assume BSD Unix */
#include <fcntl.h>
#endif
@@ -59,14 +64,14 @@ char *argv[];
seed = slash;
if((n = atoi(argv[optind])) < 0){
- fprintf(stderr,"%s not positive\n",argv[optind]);
+ warnx("%s not positive",argv[optind]);
usage();
}
}
else {
if((n = atoi(argv[optind])) < 0){
- fprintf(stderr,"%s not positive\n",argv[optind]);
+ warnx("%s not positive",argv[optind]);
usage();
}
seed = argv[++optind];
OpenPOWER on IntegriCloud