Source-Changes-HG archive

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

[src/trunk]: src/sbin/sysctl simplify more



details:   https://anonhg.NetBSD.org/src/rev/ecfe5e5c83ef
branches:  trunk
changeset: 547410:ecfe5e5c83ef
user:      itojun <itojun%NetBSD.org@localhost>
date:      Sun May 18 02:07:20 2003 +0000

description:
simplify more

diffstat:

 sbin/sysctl/sysctl.c |  7 +++----
 1 files changed, 3 insertions(+), 4 deletions(-)

diffs (28 lines):

diff -r 05715b73eeb1 -r ecfe5e5c83ef sbin/sysctl/sysctl.c
--- a/sbin/sysctl/sysctl.c      Sun May 18 02:06:28 2003 +0000
+++ b/sbin/sysctl/sysctl.c      Sun May 18 02:07:20 2003 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: sysctl.c,v 1.66 2003/05/18 02:06:28 itojun Exp $       */
+/*     $NetBSD: sysctl.c,v 1.67 2003/05/18 02:07:20 itojun Exp $       */
 
 /*
  * Copyright (c) 1993
@@ -44,7 +44,7 @@
 #if 0
 static char sccsid[] = "@(#)sysctl.c   8.1 (Berkeley) 6/6/93";
 #else
-__RCSID("$NetBSD: sysctl.c,v 1.66 2003/05/18 02:06:28 itojun Exp $");
+__RCSID("$NetBSD: sysctl.c,v 1.67 2003/05/18 02:07:20 itojun Exp $");
 #endif
 #endif /* not lint */
 
@@ -1077,8 +1077,7 @@
 
        if (*bufpp == NULL) {
                strlcpy(name, string, sizeof(name));
-               strlcat(name, ".", sizeof(name));
-               strlcat(name, "curproc", sizeof(name));
+               strlcat(name, ".curproc", sizeof(name));
                parse(name, Aflag);
                return (-1);
        }



Home | Main Index | Thread Index | Old Index