summaryrefslogtreecommitdiffstats
path: root/bin/pax/cache.c
diff options
context:
space:
mode:
Diffstat (limited to 'bin/pax/cache.c')
-rw-r--r--bin/pax/cache.c48
1 files changed, 0 insertions, 48 deletions
diff --git a/bin/pax/cache.c b/bin/pax/cache.c
index f593dce..ac0bc33 100644
--- a/bin/pax/cache.c
+++ b/bin/pax/cache.c
@@ -76,13 +76,8 @@ static GIDC **grptb = NULL; /* group name to gid cache */
* 0 if ok, -1 otherwise
*/
-#ifdef __STDC__
int
uidtb_start(void)
-#else
-int
-uidtb_start()
-#endif
{
static int fail = 0;
@@ -105,13 +100,8 @@ uidtb_start()
* 0 if ok, -1 otherwise
*/
-#ifdef __STDC__
int
gidtb_start(void)
-#else
-int
-gidtb_start()
-#endif
{
static int fail = 0;
@@ -134,13 +124,8 @@ gidtb_start()
* 0 if ok, -1 otherwise
*/
-#ifdef __STDC__
int
usrtb_start(void)
-#else
-int
-usrtb_start()
-#endif
{
static int fail = 0;
@@ -163,13 +148,8 @@ usrtb_start()
* 0 if ok, -1 otherwise
*/
-#ifdef __STDC__
int
grptb_start(void)
-#else
-int
-grptb_start()
-#endif
{
static int fail = 0;
@@ -193,15 +173,8 @@ grptb_start()
* Pointer to stored name (or a empty string)
*/
-#ifdef __STDC__
char *
name_uid(uid_t uid, int frc)
-#else
-char *
-name_uid(uid, frc)
- uid_t uid;
- int frc;
-#endif
{
register struct passwd *pw;
register UIDC *ptr;
@@ -271,15 +244,8 @@ name_uid(uid, frc)
* Pointer to stored name (or a empty string)
*/
-#ifdef __STDC__
char *
name_gid(gid_t gid, int frc)
-#else
-char *
-name_gid(gid, frc)
- gid_t gid;
- int frc;
-#endif
{
register struct group *gr;
register GIDC *ptr;
@@ -348,15 +314,8 @@ name_gid(gid, frc)
* the uid (if any) for a user name, or a -1 if no match can be found
*/
-#ifdef __STDC__
int
uid_name(char *name, uid_t *uid)
-#else
-int
-uid_name(name, uid)
- char *name;
- uid_t *uid;
-#endif
{
register struct passwd *pw;
register UIDC *ptr;
@@ -419,15 +378,8 @@ uid_name(name, uid)
* the gid (if any) for a group name, or a -1 if no match can be found
*/
-#ifdef __STDC__
int
gid_name(char *name, gid_t *gid)
-#else
-int
-gid_name(name, gid)
- char *name;
- gid_t *gid;
-#endif
{
register struct group *gr;
register GIDC *ptr;
OpenPOWER on IntegriCloud