Do not start err(3) strings with uppercase nor dot terminate them.
Standard sccsid[] area according to style(9).
This commit is contained in:
parent
aaa9487d53
commit
65b386f1aa
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=110401
@ -37,11 +37,12 @@ static const char copyright[] =
|
|||||||
The Regents of the University of California. All rights reserved.\n";
|
The Regents of the University of California. All rights reserved.\n";
|
||||||
#endif /* not lint */
|
#endif /* not lint */
|
||||||
|
|
||||||
#ifndef lint
|
|
||||||
#if 0
|
#if 0
|
||||||
|
#ifndef lint
|
||||||
static char sccsid[] = "@(#)ktrace.c 8.1 (Berkeley) 6/6/93";
|
static char sccsid[] = "@(#)ktrace.c 8.1 (Berkeley) 6/6/93";
|
||||||
#endif
|
|
||||||
#endif /* not lint */
|
#endif /* not lint */
|
||||||
|
#endif
|
||||||
|
|
||||||
#include <sys/cdefs.h>
|
#include <sys/cdefs.h>
|
||||||
__FBSDID("$FreeBSD$");
|
__FBSDID("$FreeBSD$");
|
||||||
|
|
||||||
@ -147,7 +148,7 @@ main(int argc, char *argv[])
|
|||||||
if ((fd = open(tracefile, O_CREAT | O_WRONLY, DEFFILEMODE)) < 0)
|
if ((fd = open(tracefile, O_CREAT | O_WRONLY, DEFFILEMODE)) < 0)
|
||||||
err(1, "%s", tracefile);
|
err(1, "%s", tracefile);
|
||||||
if (fstat(fd, &sb) != 0 || sb.st_uid != getuid())
|
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);
|
tracefile);
|
||||||
} else {
|
} else {
|
||||||
if (unlink(tracefile) == -1 && errno != ENOENT)
|
if (unlink(tracefile) == -1 && errno != ENOENT)
|
||||||
@ -176,11 +177,11 @@ rpid(char *p)
|
|||||||
static int first;
|
static int first;
|
||||||
|
|
||||||
if (first++) {
|
if (first++) {
|
||||||
warnx("only one -g or -p flag is permitted.");
|
warnx("only one -g or -p flag is permitted");
|
||||||
usage();
|
usage();
|
||||||
}
|
}
|
||||||
if (!*p) {
|
if (!*p) {
|
||||||
warnx("illegal process id.");
|
warnx("illegal process id");
|
||||||
usage();
|
usage();
|
||||||
}
|
}
|
||||||
return(atoi(p));
|
return(atoi(p));
|
||||||
|
@ -31,13 +31,11 @@
|
|||||||
* SUCH DAMAGE.
|
* SUCH DAMAGE.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifndef lint
|
|
||||||
#if 0
|
#if 0
|
||||||
|
#ifndef lint
|
||||||
static char sccsid[] = "@(#)subr.c 8.1 (Berkeley) 6/6/93";
|
static char sccsid[] = "@(#)subr.c 8.1 (Berkeley) 6/6/93";
|
||||||
#endif
|
|
||||||
#endif /* not lint */
|
#endif /* not lint */
|
||||||
#include <sys/cdefs.h>
|
#endif
|
||||||
__FBSDID("$FreeBSD$");
|
|
||||||
|
|
||||||
#include <sys/cdefs.h>
|
#include <sys/cdefs.h>
|
||||||
__FBSDID("$FreeBSD$");
|
__FBSDID("$FreeBSD$");
|
||||||
|
Loading…
Reference in New Issue
Block a user