diff options
author | Panu Matilainen <pmatilai@redhat.com> | 2007-12-14 15:17:59 +0200 |
---|---|---|
committer | Panu Matilainen <pmatilai@redhat.com> | 2007-12-14 15:17:59 +0200 |
commit | 8d66d5fe4a9d7b7b015153edb8f204ac3b89c461 (patch) | |
tree | da32cd205771d4bc9ac3ead3797a3e0522a4b512 /rpmio | |
parent | 7d817f06b14c221bf0fbf74610e4d85093e77fcc (diff) | |
download | librpm-tizen-8d66d5fe4a9d7b7b015153edb8f204ac3b89c461.tar.gz librpm-tizen-8d66d5fe4a9d7b7b015153edb8f204ac3b89c461.tar.bz2 librpm-tizen-8d66d5fe4a9d7b7b015153edb8f204ac3b89c461.zip |
Bunch of const char* corrections
- functions returning string constants as char * etc...
Diffstat (limited to 'rpmio')
-rw-r--r-- | rpmio/ugid.c | 4 | ||||
-rw-r--r-- | rpmio/ugid.h | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/rpmio/ugid.c b/rpmio/ugid.c index 32d7387fd..c256829ab 100644 --- a/rpmio/ugid.c +++ b/rpmio/ugid.c @@ -109,7 +109,7 @@ static char * lastGname = NULL; return 0; } -char * uidToUname(uid_t uid) +const char * uidToUname(uid_t uid) { static uid_t lastUid = (uid_t) -1; static char * lastUname = NULL; @@ -140,7 +140,7 @@ static char * lastUname = NULL; } } -char * gidToGname(gid_t gid) +const char * gidToGname(gid_t gid) { static gid_t lastGid = (gid_t) -1; static char * lastGname = NULL; diff --git a/rpmio/ugid.h b/rpmio/ugid.h index 0ef555950..d3556ef14 100644 --- a/rpmio/ugid.h +++ b/rpmio/ugid.h @@ -19,8 +19,8 @@ int gnameToGid(const char * thisGname, gid_t * gid); /* * Call w/ -1 to flush the cache, returns NULL if the user can't be found. */ -char * uidToUname(uid_t uid); -char * gidToGname(gid_t gid); +const char * uidToUname(uid_t uid); +const char * gidToGname(gid_t gid); #ifdef __cplusplus } |