mirror of
https://github.com/opnsense/src.git
synced 2026-06-09 08:43:19 -04:00
Add FBSDID. Do not \n terminate warnx() argument. fprint() -> warnx().
This commit is contained in:
parent
fed771de60
commit
b956c13cfe
2 changed files with 6 additions and 11 deletions
|
|
@ -29,10 +29,8 @@
|
|||
* SUCH DAMAGE.
|
||||
*/
|
||||
|
||||
#ifndef lint
|
||||
static const char rcsid[] =
|
||||
"$FreeBSD$";
|
||||
#endif /* not lint */
|
||||
#include <sys/cdefs.h>
|
||||
__FBSDID("$FreeBSD$");
|
||||
|
||||
/*
|
||||
* The main module for truss. Suprisingly simple, but, then, the other
|
||||
|
|
@ -129,7 +127,7 @@ set_etype(struct trussinfo *trussinfo) {
|
|||
|
||||
if (funcs->type == NULL) {
|
||||
funcs = &ex_types[0];
|
||||
warn("Execution type %s is not supported -- using %s\n",
|
||||
warn("execution type %s is not supported -- using %s",
|
||||
progt, funcs->type);
|
||||
}
|
||||
return funcs;
|
||||
|
|
|
|||
|
|
@ -29,10 +29,8 @@
|
|||
* SUCH DAMAGE.
|
||||
*/
|
||||
|
||||
#ifndef lint
|
||||
static const char rcsid[] =
|
||||
"$FreeBSD$";
|
||||
#endif /* not lint */
|
||||
#include <sys/cdefs.h>
|
||||
__FBSDID("$FreeBSD$");
|
||||
|
||||
/*
|
||||
* Various setup functions for truss. Not the cleanest-written code,
|
||||
|
|
@ -45,7 +43,6 @@ static const char rcsid[] =
|
|||
#include <sys/wait.h>
|
||||
|
||||
#include <err.h>
|
||||
#include <errno.h>
|
||||
#include <fcntl.h>
|
||||
#include <signal.h>
|
||||
#include <stdio.h>
|
||||
|
|
@ -115,7 +112,7 @@ setup_and_wait(char *command[]) {
|
|||
if (ioctl(fd, PIOCWAIT, &pfs) == -1)
|
||||
err(6, "PIOCWAIT");
|
||||
if (pfs.why == S_EXIT) {
|
||||
fprintf(stderr, "process exited before exec'ing\n");
|
||||
warnx("process exited before exec'ing");
|
||||
ioctl(fd, PIOCCONT, 0);
|
||||
wait(0);
|
||||
exit(7);
|
||||
|
|
|
|||
Loading…
Reference in a new issue