Source-Changes-HG archive

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

[src/trunk]: src/sys/kern Revert braces.



details:   https://anonhg.NetBSD.org/src/rev/2728c1f51b12
branches:  trunk
changeset: 795440:2728c1f51b12
user:      uebayasi <uebayasi%NetBSD.org@localhost>
date:      Sun Apr 13 12:11:01 2014 +0000

description:
Revert braces.

diffstat:

 sys/kern/kern_exec.c |  16 ++--------------
 1 files changed, 2 insertions(+), 14 deletions(-)

diffs (98 lines):

diff -r f125c5205f25 -r 2728c1f51b12 sys/kern/kern_exec.c
--- a/sys/kern/kern_exec.c      Sun Apr 13 09:19:42 2014 +0000
+++ b/sys/kern/kern_exec.c      Sun Apr 13 12:11:01 2014 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: kern_exec.c,v 1.392 2014/04/13 09:19:42 uebayasi Exp $ */
+/*     $NetBSD: kern_exec.c,v 1.393 2014/04/13 12:11:01 uebayasi Exp $ */
 
 /*-
  * Copyright (c) 2008 The NetBSD Foundation, Inc.
@@ -59,7 +59,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: kern_exec.c,v 1.392 2014/04/13 09:19:42 uebayasi Exp $");
+__KERNEL_RCSID(0, "$NetBSD: kern_exec.c,v 1.393 2014/04/13 12:11:01 uebayasi Exp $");
 
 #include "opt_exec.h"
 #include "opt_execfmt.h"
@@ -998,7 +998,6 @@
 
        DUMPVMCMDS(epp, 0, 0);
 
-    {
        size_t                  i;
        struct exec_vmcmd       *base_vcp;
 
@@ -1034,9 +1033,7 @@
                DPRINTF(("%s: vmcmd %zu failed: %d\n", __func__, i - 1, error));
                goto exec_abort;
        }
-    }
 
-    {
        const char              *commandname;
        size_t                  commandlen;
 
@@ -1050,9 +1047,7 @@
        commandlen = min(strlen(commandname), MAXCOMLEN);
        (void)memcpy(p->p_comm, commandname, commandlen);
        p->p_comm[commandlen] = '\0';
-    }
 
-    {
        char                    *path;
 
        path = PNBUF_GET();
@@ -1087,13 +1082,11 @@
                epp->ep_path = NULL;
                PNBUF_PUT(path);
        }
-    }
 
        /* remember information about the process */
        data->ed_arginfo.ps_nargvstr = data->ed_argc;
        data->ed_arginfo.ps_nenvstr = data->ed_envc;
 
-    {
        /*
         * Allocate the stack address passed to the newly execve()'ed process.
         *
@@ -1132,13 +1125,11 @@
                DPRINTF(("%s: copyargs failed %d\n", __func__, error));
                goto exec_abort;
        }
-    }
 
        /* fill process ps_strings info */
        p->p_psstrp = (vaddr_t)STACK_ALLOC(STACK_GROW(vm->vm_minsaddr,
            STACK_PTHREADSPACE), data->ed_ps_strings_sz);
 
-    {
        struct ps_strings32     arginfo32;
        void                    *aip;
 
@@ -1158,7 +1149,6 @@
                    __func__, aip, (void *)p->p_psstrp, data->ed_ps_strings_sz));
                goto exec_abort;
        }
-    }
 
        cwdexec(p);
        fd_closeexec();         /* handle close on exec */
@@ -1223,7 +1213,6 @@
 
        doexechooks(p);
 
-    {
        /*
         * Set initial SP at the top of the stack.
         *
@@ -1237,7 +1226,6 @@
        (*epp->ep_esch->es_emul->e_setregs)(l, epp, newstack);
        if (epp->ep_esch->es_setregs)
                (*epp->ep_esch->es_setregs)(l, epp, newstack);
-    }
 
        /* Provide a consistent LWP private setting */
        (void)lwp_setprivate(l, NULL);



Home | Main Index | Thread Index | Old Index