diff options
author | jbj <devnull@localhost> | 1999-10-20 21:40:10 +0000 |
---|---|---|
committer | jbj <devnull@localhost> | 1999-10-20 21:40:10 +0000 |
commit | 6defa683eb5eab3411a1bd827106ccf45edfd7f3 (patch) | |
tree | 34b4a53c737c1b235769b326ba660f527e47e40c /lib/misc.c | |
parent | 574cad11f200498c52daf162d71b22c928926534 (diff) | |
download | librpm-tizen-6defa683eb5eab3411a1bd827106ccf45edfd7f3.tar.gz librpm-tizen-6defa683eb5eab3411a1bd827106ccf45edfd7f3.tar.bz2 librpm-tizen-6defa683eb5eab3411a1bd827106ccf45edfd7f3.zip |
lclint annotations.
CVS patchset: 3387
CVS date: 1999/10/20 21:40:10
Diffstat (limited to 'lib/misc.c')
-rw-r--r-- | lib/misc.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/lib/misc.c b/lib/misc.c index 23d22d9ed..921370a85 100644 --- a/lib/misc.c +++ b/lib/misc.c @@ -201,8 +201,8 @@ int dosetenv(const char *name, const char *value, int overwrite) { is looked up via getpw() and getgr() functions. If this performs too poorly I'll have to implement it properly :-( */ -int unameToUid(char * thisUname, uid_t * uid) { - static char * lastUname = NULL; +int unameToUid(const char * thisUname, uid_t * uid) { + /*@only@*/ static char * lastUname = NULL; static int lastUnameLen = 0; static int lastUnameAlloced; static uid_t lastUid; @@ -241,8 +241,8 @@ int unameToUid(char * thisUname, uid_t * uid) { return 0; } -int gnameToGid(char * thisGname, gid_t * gid) { - static char * lastGname = NULL; +int gnameToGid(const char * thisGname, gid_t * gid) { + /*@only@*/ static char * lastGname = NULL; static int lastGnameLen = 0; static int lastGnameAlloced; static uid_t lastGid; @@ -282,7 +282,7 @@ int gnameToGid(char * thisGname, gid_t * gid) { char * uidToUname(uid_t uid) { static int lastUid = -1; - static char * lastUname = NULL; + /*@only@*/ static char * lastUname = NULL; static int lastUnameLen = 0; struct passwd * pwent; int len; @@ -312,7 +312,7 @@ char * uidToUname(uid_t uid) { char * gidToGname(gid_t gid) { static int lastGid = -1; - static char * lastGname = NULL; + /*@only@*/ static char * lastGname = NULL; static int lastGnameLen = 0; struct group * grent; int len; |