aboutsummaryrefslogtreecommitdiff
path: root/usr.sbin/pkg_install/lib/exec.c
diff options
context:
space:
mode:
authorPhilippe Charnier <charnier@FreeBSD.org>1997-10-08 07:48:21 +0000
committerPhilippe Charnier <charnier@FreeBSD.org>1997-10-08 07:48:21 +0000
commit6fed414929a595c4f33ab6c19535307ff4b9b787 (patch)
tree7bcf1819b90d1844ff07ddc14881ba7e2f0d94cb /usr.sbin/pkg_install/lib/exec.c
parent4586e1abc5b800ef9a7c314189e3f5abea90d12d (diff)
Notes
Diffstat (limited to 'usr.sbin/pkg_install/lib/exec.c')
-rw-r--r--usr.sbin/pkg_install/lib/exec.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/usr.sbin/pkg_install/lib/exec.c b/usr.sbin/pkg_install/lib/exec.c
index 87bcc10f607b..0087c18c7023 100644
--- a/usr.sbin/pkg_install/lib/exec.c
+++ b/usr.sbin/pkg_install/lib/exec.c
@@ -1,5 +1,6 @@
#ifndef lint
-static const char *rcsid = "$Id$";
+static const char rcsid[] =
+ "$Id: exec.c,v 1.5 1997/02/22 16:09:46 peter Exp $";
#endif
/*
@@ -22,6 +23,7 @@ static const char *rcsid = "$Id$";
*
*/
+#include <err.h>
#include "lib.h"
/*
@@ -40,13 +42,13 @@ vsystem(const char *fmt, ...)
maxargs -= 32; /* some slop for the sh -c */
cmd = malloc(maxargs);
if (!cmd) {
- whinge("vsystem can't alloc arg space");
+ warnx("vsystem can't alloc arg space");
return 1;
}
va_start(args, fmt);
if (vsnprintf(cmd, maxargs, fmt, args) > maxargs) {
- whinge("vsystem args are too long");
+ warnx("vsystem args are too long");
return 1;
}
#ifdef DEBUG