Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/netbsd-1-4]: src/usr.sbin/pkg_install/lib Pull up revision 1.6:



details:   https://anonhg.NetBSD.org/src/rev/c0ec673e4f2e
branches:  netbsd-1-4
changeset: 469388:c0ec673e4f2e
user:      he <he%NetBSD.org@localhost>
date:      Mon Sep 13 22:17:54 1999 +0000

description:
Pull up revision 1.6:
  Bring closer to /usr/share/misc/style with the aid of indent(1).  (hubertf)

diffstat:

 usr.sbin/pkg_install/lib/exec.c |  18 ++++++++----------
 1 files changed, 8 insertions(+), 10 deletions(-)

diffs (46 lines):

diff -r 043cd60431a0 -r c0ec673e4f2e usr.sbin/pkg_install/lib/exec.c
--- a/usr.sbin/pkg_install/lib/exec.c   Mon Sep 13 22:16:22 1999 +0000
+++ b/usr.sbin/pkg_install/lib/exec.c   Mon Sep 13 22:17:54 1999 +0000
@@ -1,11 +1,11 @@
-/*     $NetBSD: exec.c,v 1.5 1998/10/08 12:15:24 agc Exp $     */
+/*     $NetBSD: exec.c,v 1.5.2.1 1999/09/13 22:17:54 he 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.5.2.1 1999/09/13 22:17:54 he Exp $");
 #endif
 #endif
 
@@ -36,17 +36,16 @@
  * 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 @@
        free(cmd);
        return ret;
 }
-



Home | Main Index | Thread Index | Old Index