summaryrefslogtreecommitdiff
path: root/nis/nis_defaults.c
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>1998-10-31 12:13:49 +0000
committerUlrich Drepper <drepper@redhat.com>1998-10-31 12:13:49 +0000
commita1129917d77757941eded59e574f5fc9199284cb (patch)
treef934658661b419f0fe5a2508a15b982a78e4003c /nis/nis_defaults.c
parent655b26bb758d9acb15e4870c1c541bb25c36cdd1 (diff)
downloadglibc-a1129917d77757941eded59e574f5fc9199284cb.tar.gz
Update.
1998-10-30 Thorsten Kukuk <kukuk@vt.uni-paderborn.de> * sunrpc/Versions: Add xdr_uint32_t and xdr_int32_t. * sunrpc/pmap_rmt.c: Initialize clnt_stat variable. * sunrpc/rpc/auth_des.h: Use uint32_t for time values. * sunrpc/rpc/xdr.h: Add INT32 support. * sunrpc/xdr.c: Implement xdr_int32_t and xdr_uint32_t . * nis/nis_call.c: Changes for new 64bit clean NIS+ interface. * nis/nis_callback.c: Likewise. * nis/nis_creategroup.c: Likewise. * nis/nis_defaults.c: Likewise. * nis/nis_intern.h: Likewise. * nis/nis_lookup.c: Likewise. * nis/nis_ping.c: Likewise. * nis/nis_print.c: Likewise. * nis/nis_table.c: Likewise. * nis/nis_util.c: Likewise. * nis/nis_xdr.c: Likewise. * nis/rpcsvc/nis.h: Likewise. * nis/rpcsvc/nis.x: Likewise. * nis/rpcsvc/nis_callback.h: Likewise. * nis/rpcsvc/nis_object.x: Likewise. * nis/rpcsvc/nislib.h: Likewise. * nis/rpcsvc/yp.h: Remove casts to (u_long). * nis/rpcsvc/yp_prot.h: Likewise. * nis/rpcsvc/ypupd.h: Likewise. * nis/ypclnt.c: Change %ld to %d in sprintf.
Diffstat (limited to 'nis/nis_defaults.c')
-rw-r--r--nis/nis_defaults.c26
1 files changed, 13 insertions, 13 deletions
diff --git a/nis/nis_defaults.c b/nis/nis_defaults.c
index 729bc4c86a..8ddf67e778 100644
--- a/nis/nis_defaults.c
+++ b/nis/nis_defaults.c
@@ -69,12 +69,12 @@ searchowner (char *str)
return strndup (cptr, i);
}
-static u_long
+static uint32_t
searchttl (char *str)
{
char buf[strlen (str) + 1];
char *cptr, *dptr;
- u_long time;
+ uint32_t time;
int i;
dptr = strstr (str, "ttl=");
@@ -129,12 +129,12 @@ searchttl (char *str)
return time;
}
-static u_long
-searchaccess (char *str, u_long access)
+static unsigned int
+searchaccess (char *str, unsigned int access)
{
char buf[strlen (str) + 1];
char *cptr;
- u_long result = access;
+ unsigned int result = access;
int i;
int n, o, g, w;
@@ -222,7 +222,7 @@ searchaccess (char *str, u_long access)
result = result & ~(NIS_DESTROY_ACC);
break;
default:
- return ULONG_MAX;
+ return (~0U);
}
cptr++;
}
@@ -275,7 +275,7 @@ searchaccess (char *str, u_long access)
result = result | (NIS_DESTROY_ACC);
break;
default:
- return ULONG_MAX;
+ return (~0U);
}
cptr++;
}
@@ -342,14 +342,14 @@ searchaccess (char *str, u_long access)
result = result | (NIS_DESTROY_ACC);
break;
default:
- return result = ULONG_MAX;
+ return result = (~0U);
}
cptr++;
}
n = o = g = w = 0;
break;
default:
- return result = ULONG_MAX;
+ return result = (~0U);
}
if (*cptr != '\0')
cptr++;
@@ -436,7 +436,7 @@ __nis_default_group (char *defaults)
return strdup (default_group);
}
-u_long
+uint32_t
__nis_default_ttl (char *defaults)
{
char *cptr, *dptr;
@@ -461,10 +461,10 @@ __nis_default_ttl (char *defaults)
/* Default access rights are ----rmcdr---r---, but we could change
this with the NIS_DEFAULTS variable. */
-u_long
-__nis_default_access (char *param, u_long defaults)
+unsigned int
+__nis_default_access (char *param, unsigned int defaults)
{
- u_long result;
+ unsigned int result;
char *cptr;
if (defaults == 0)