Source-Changes-HG archive

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

[src/trunk]: src/lib/libutil s/basename/bname/



details:   https://anonhg.NetBSD.org/src/rev/6194a879568f
branches:  trunk
changeset: 805886:6194a879568f
user:      christos <christos%NetBSD.org@localhost>
date:      Thu Jan 22 19:04:28 2015 +0000

description:
s/basename/bname/

diffstat:

 lib/libutil/pidfile.c |  8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diffs (36 lines):

diff -r 592c78351e18 -r 6194a879568f lib/libutil/pidfile.c
--- a/lib/libutil/pidfile.c     Thu Jan 22 18:46:15 2015 +0000
+++ b/lib/libutil/pidfile.c     Thu Jan 22 19:04:28 2015 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: pidfile.c,v 1.10 2015/01/22 16:19:08 christos Exp $    */
+/*     $NetBSD: pidfile.c,v 1.11 2015/01/22 19:04:28 christos Exp $    */
 
 /*-
  * Copyright (c) 1999 The NetBSD Foundation, Inc.
@@ -31,7 +31,7 @@
 
 #include <sys/cdefs.h>
 #if defined(LIBC_SCCS) && !defined(lint)
-__RCSID("$NetBSD: pidfile.c,v 1.10 2015/01/22 16:19:08 christos Exp $");
+__RCSID("$NetBSD: pidfile.c,v 1.11 2015/01/22 19:04:28 christos Exp $");
 #endif
 
 #include <sys/param.h>
@@ -99,7 +99,7 @@
 }
 
 /* Constructs a name for a pidfile in the default location (/var/run).  If
- * 'basename' is NULL, uses the name of the current program for the name of
+ * 'bname' is NULL, uses the name of the current program for the name of
  * the pidfile.
  *
  * Returns a pointer to a dynamically-allocatd string containing the absolute
@@ -113,7 +113,7 @@
                bname = getprogname();
 
        /* _PATH_VARRUN includes trailing / */
-       if (asprintf(&path, "%s%s.pid", _PATH_VARRUN, basename) == -1)
+       if (asprintf(&path, "%s%s.pid", _PATH_VARRUN, bname) == -1)
                return NULL;
        return path;
 }



Home | Main Index | Thread Index | Old Index