summaryrefslogtreecommitdiff
path: root/usr.sbin/pkg_install/lib/exec.c
diff options
context:
space:
mode:
authorhubertf <hubertf@NetBSD.org>1999-08-24 00:48:37 +0000
committerhubertf <hubertf@NetBSD.org>1999-08-24 00:48:37 +0000
commit8ee940971e5e01afd2de40c425fd048e94848b2f (patch)
treef5508c2e5e24f70ecf8e7596a05a2c295d45e008 /usr.sbin/pkg_install/lib/exec.c
parentfd8ab6e67ca70de2fcda2500d3392c403e5c1a39 (diff)
Bring closer to /usr/share/misc/style with the aid of indent(1).
Diffstat (limited to 'usr.sbin/pkg_install/lib/exec.c')
-rw-r--r--usr.sbin/pkg_install/lib/exec.c18
1 files changed, 8 insertions, 10 deletions
diff --git a/usr.sbin/pkg_install/lib/exec.c b/usr.sbin/pkg_install/lib/exec.c
index 766369de23b..e60a3071fe4 100644
--- a/usr.sbin/pkg_install/lib/exec.c
+++ b/usr.sbin/pkg_install/lib/exec.c
@@ -1,11 +1,11 @@
-/* $NetBSD: exec.c,v 1.5 1998/10/08 12:15:24 agc Exp $ */
+/* $NetBSD: exec.c,v 1.6 1999/08/24 00:48:39 hubertf Exp $ */
#include <sys/cdefs.h>
#ifndef lint
#if 0
static const char *rcsid = "from FreeBSD Id: exec.c,v 1.6 1997/10/08 07:47:50 charnier Exp";
#else
-__RCSID("$NetBSD: exec.c,v 1.5 1998/10/08 12:15:24 agc Exp $");
+__RCSID("$NetBSD: exec.c,v 1.6 1999/08/24 00:48:39 hubertf Exp $");
#endif
#endif
@@ -36,17 +36,16 @@ __RCSID("$NetBSD: exec.c,v 1.5 1998/10/08 12:15:24 agc Exp $");
* Unusual system() substitute. Accepts format string and args,
* builds and executes command. Returns exit code.
*/
-
int
-vsystem(const char *fmt, ...)
+vsystem(const char *fmt,...)
{
- va_list args;
- char *cmd;
- size_t maxargs;
- int ret;
+ va_list args;
+ char *cmd;
+ size_t maxargs;
+ int ret;
maxargs = (size_t) sysconf(_SC_ARG_MAX);
- maxargs -= 32; /* some slop for the sh -c */
+ maxargs -= 32; /* some slop for the sh -c */
if ((cmd = (char *) malloc(maxargs)) == (char *) NULL) {
warnx("vsystem can't alloc arg space");
return 1;
@@ -65,4 +64,3 @@ vsystem(const char *fmt, ...)
free(cmd);
return ret;
}
-