Source-Changes-HG archive

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

[src/trunk]: src/sys/kern fix incomplete statement.



details:   https://anonhg.NetBSD.org/src/rev/29f957a4b729
branches:  trunk
changeset: 771548:29f957a4b729
user:      christos <christos%NetBSD.org@localhost>
date:      Thu Nov 24 19:55:22 2011 +0000

description:
fix incomplete statement.

diffstat:

 sys/kern/kern_exec.c |  11 ++++++-----
 1 files changed, 6 insertions(+), 5 deletions(-)

diffs (46 lines):

diff -r 12cf40d346ac -r 29f957a4b729 sys/kern/kern_exec.c
--- a/sys/kern/kern_exec.c      Thu Nov 24 19:14:30 2011 +0000
+++ b/sys/kern/kern_exec.c      Thu Nov 24 19:55:22 2011 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: kern_exec.c,v 1.331 2011/11/24 17:09:14 christos Exp $ */
+/*     $NetBSD: kern_exec.c,v 1.332 2011/11/24 19:55:22 christos 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.331 2011/11/24 17:09:14 christos Exp $");
+__KERNEL_RCSID(0, "$NetBSD: kern_exec.c,v 1.332 2011/11/24 19:55:22 christos Exp $");
 
 #include "opt_exec.h"
 #include "opt_ktrace.h"
@@ -406,7 +406,8 @@
                                    (unsigned long long)epp->ep_tsize,
                                    (unsigned long long)MAXTSIZ,
                                    (unsigned long long)epp->ep_dsize,
-                                   (unsigned long long)l->l_proc->p_rlimit);
+                                   (unsigned long long)
+                                   l->l_proc->p_rlimit[RLIMIT_DATA].rlim_cur);
 #endif
                                error = ENOMEM;
                                break;
@@ -963,7 +964,7 @@
         */
        if (pathstring[0] == '/')
                (void)strlcpy(pack.ep_path = dp, pathstring, MAXPATHLEN);
-#ifdef notyet
+#ifndef notyet
        /*
         * Although this works most of the time [since the entry was just
         * entered in the cache] we don't use it because it theoretically
@@ -975,7 +976,7 @@
                pack.ep_path = dp;
 #endif
        else {
-#ifdef notyet
+#ifndef notyet
                printf("Cannot get path for pid %d [%s] (error %d)",
                    (int)p->p_pid, p->p_comm, error);
 #endif



Home | Main Index | Thread Index | Old Index