Source-Changes-HG archive

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

[src/trunk]: src/usr.bin/id Add some missing static/const.



details:   https://anonhg.NetBSD.org/src/rev/9957421dc869
branches:  trunk
changeset: 571409:9957421dc869
user:      peter <peter%NetBSD.org@localhost>
date:      Mon Nov 22 17:31:38 2004 +0000

description:
Add some missing static/const.

ok wiz@

diffstat:

 usr.bin/id/id.c |  12 ++++++------
 1 files changed, 6 insertions(+), 6 deletions(-)

diffs (57 lines):

diff -r 81f3ecb4cef3 -r 9957421dc869 usr.bin/id/id.c
--- a/usr.bin/id/id.c   Mon Nov 22 17:28:58 2004 +0000
+++ b/usr.bin/id/id.c   Mon Nov 22 17:31:38 2004 +0000
@@ -37,7 +37,7 @@
 #if 0
 static char sccsid[] = "@(#)id.c       8.3 (Berkeley) 4/28/95";
 #else
-__RCSID("$NetBSD: id.c,v 1.23 2004/11/22 17:28:58 peter Exp $");
+__RCSID("$NetBSD: id.c,v 1.24 2004/11/22 17:31:38 peter Exp $");
 #endif
 #endif /* not lint */
 
@@ -208,7 +208,7 @@
        struct group *gr;
        struct passwd *pw;
        int cnt, id, eid, lastid, ngroups;
-       char *fmt;
+       const char *fmt;
 
        id = getuid();
        (void)printf("uid=%u", id);
@@ -246,7 +246,7 @@
 user(struct passwd *pw)
 {
        struct group *gr;
-       char *fmt;
+       const char *fmt;
        int cnt, id, lastid, ngroups;
 
        id = pw->pw_uid;
@@ -273,7 +273,7 @@
 {
        struct group *gr;
        int cnt, id, lastid, ngroups;
-       char *fmt;
+       const char *fmt;
 
        if (pw) {
                ngroups = maxgroups;
@@ -302,7 +302,7 @@
        (void)printf("\n");
 }
 
-struct passwd *
+static struct passwd *
 who(char *u)
 {
        struct passwd *pw;
@@ -323,7 +323,7 @@
        return NULL;
 }
 
-void
+static void
 usage(void)
 {
 



Home | Main Index | Thread Index | Old Index