diff options
author | charnier <charnier@FreeBSD.org> | 2003-02-05 14:25:43 +0000 |
---|---|---|
committer | charnier <charnier@FreeBSD.org> | 2003-02-05 14:25:43 +0000 |
commit | f9143f2eabc9ce79b88375a1341713d8812cf2e8 (patch) | |
tree | aeb0af23e13f6d95b1014a84053411b3e942cae1 /usr.bin/ktrace | |
parent | dd3bdff2f61b90fc7d41aa17f077168d4983c3c2 (diff) | |
download | FreeBSD-src-f9143f2eabc9ce79b88375a1341713d8812cf2e8.zip FreeBSD-src-f9143f2eabc9ce79b88375a1341713d8812cf2e8.tar.gz |
Do not start err(3) strings with uppercase nor dot terminate them.
Standard sccsid[] area according to style(9).
Diffstat (limited to 'usr.bin/ktrace')
-rw-r--r-- | usr.bin/ktrace/ktrace.c | 11 | ||||
-rw-r--r-- | usr.bin/ktrace/subr.c | 6 |
2 files changed, 8 insertions, 9 deletions
diff --git a/usr.bin/ktrace/ktrace.c b/usr.bin/ktrace/ktrace.c index 67f01d2..4b83796 100644 --- a/usr.bin/ktrace/ktrace.c +++ b/usr.bin/ktrace/ktrace.c @@ -37,11 +37,12 @@ static const char copyright[] = The Regents of the University of California. All rights reserved.\n"; #endif /* not lint */ -#ifndef lint #if 0 +#ifndef lint static char sccsid[] = "@(#)ktrace.c 8.1 (Berkeley) 6/6/93"; -#endif #endif /* not lint */ +#endif + #include <sys/cdefs.h> __FBSDID("$FreeBSD$"); @@ -147,7 +148,7 @@ main(int argc, char *argv[]) if ((fd = open(tracefile, O_CREAT | O_WRONLY, DEFFILEMODE)) < 0) err(1, "%s", tracefile); if (fstat(fd, &sb) != 0 || sb.st_uid != getuid()) - errx(1, "Refuse to append to %s not owned by you.", + errx(1, "refuse to append to %s not owned by you", tracefile); } else { if (unlink(tracefile) == -1 && errno != ENOENT) @@ -176,11 +177,11 @@ rpid(char *p) static int first; if (first++) { - warnx("only one -g or -p flag is permitted."); + warnx("only one -g or -p flag is permitted"); usage(); } if (!*p) { - warnx("illegal process id."); + warnx("illegal process id"); usage(); } return(atoi(p)); diff --git a/usr.bin/ktrace/subr.c b/usr.bin/ktrace/subr.c index c56aa29..5b8b64d 100644 --- a/usr.bin/ktrace/subr.c +++ b/usr.bin/ktrace/subr.c @@ -31,13 +31,11 @@ * SUCH DAMAGE. */ -#ifndef lint #if 0 +#ifndef lint static char sccsid[] = "@(#)subr.c 8.1 (Berkeley) 6/6/93"; -#endif #endif /* not lint */ -#include <sys/cdefs.h> -__FBSDID("$FreeBSD$"); +#endif #include <sys/cdefs.h> __FBSDID("$FreeBSD$"); |