From d0245e3952ee6e22ffeffe67e2c7dbf2ae7d93ed Mon Sep 17 00:00:00 2001 From: hubertf Date: Thu, 16 Oct 1997 00:31:32 +0000 Subject: First cut on importing pkg_install as of FreeBSD 971013: - warn()/err() instead of whinge()/barf() - Update RCS Id strings - Update manpages (mostly) --- usr.sbin/pkg_install/lib/exec.c | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) (limited to 'usr.sbin/pkg_install/lib/exec.c') diff --git a/usr.sbin/pkg_install/lib/exec.c b/usr.sbin/pkg_install/lib/exec.c index a0c17da16ba..40974c59b20 100644 --- a/usr.sbin/pkg_install/lib/exec.c +++ b/usr.sbin/pkg_install/lib/exec.c @@ -1,10 +1,10 @@ -/* $NetBSD: exec.c,v 1.2 1997/06/05 12:59:44 agc Exp $ */ +/* $NetBSD: exec.c,v 1.3 1997/10/16 00:32:17 hubertf Exp $ */ #ifndef lint #if 0 -static const char *rcsid = "from FreeBSD Id: exec.c,v 1.5 1997/02/22 16:09:46 peter Exp"; +static const char *rcsid = "from FreeBSD Id: exec.c,v 1.6 1997/10/08 07:47:50 charnier Exp"; #else -static const char *rcsid = "$NetBSD: exec.c,v 1.2 1997/06/05 12:59:44 agc Exp $"; +static const char *rcsid = "$NetBSD: exec.c,v 1.3 1997/10/16 00:32:17 hubertf Exp $"; #endif #endif @@ -28,6 +28,7 @@ static const char *rcsid = "$NetBSD: exec.c,v 1.2 1997/06/05 12:59:44 agc Exp $" * */ +#include #include "lib.h" /* @@ -46,13 +47,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 -- cgit