aboutsummaryrefslogtreecommitdiff
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_print.c
parentUpdate. (diff)
downloadglibc-a1129917d77757941eded59e574f5fc9199284cb.tar.gz
glibc-a1129917d77757941eded59e574f5fc9199284cb.tar.bz2
glibc-a1129917d77757941eded59e574f5fc9199284cb.zip
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_print.c')
-rw-r--r--nis/nis_print.c18
1 files changed, 9 insertions, 9 deletions
diff --git a/nis/nis_print.c b/nis/nis_print.c
index b578cbfb65..2433d4fd88 100644
--- a/nis/nis_print.c
+++ b/nis/nis_print.c
@@ -49,9 +49,9 @@ nis_nstype2str (const nstype type)
}
static void
-print_ttl (const u_long ttl)
+print_ttl (const uint32_t ttl)
{
- unsigned long int time, s, m, h;
+ uint32_t time, s, m, h;
time = ttl;
@@ -60,11 +60,11 @@ print_ttl (const u_long ttl)
m = time / 60;
time %= 60;
s = time;
- printf ("%lu:%lu:%lu\n", h, m, s);
+ printf ("%u:%u:%u\n", h, m, s);
}
static void
-print_flags (const u_long flags)
+print_flags (const unsigned int flags)
{
fputs ("(", stdout);
@@ -132,10 +132,10 @@ nis_print_objtype (enum zotypes type)
}
void
-nis_print_rights (const u_long access)
+nis_print_rights (const unsigned int access)
{
char result[17];
- u_long acc;
+ unsigned int acc;
int i;
acc = access; /* Parameter is const ! */
@@ -247,7 +247,7 @@ nis_print_group (const group_obj *obj)
fputs (_("Group Flags :"), stdout);
if (obj->gr_flags)
- printf ("0x%08lX", obj->gr_flags);
+ printf ("0x%08X", obj->gr_flags);
fputs (_("\nGroup Members :\n"), stdout);
for (i = 0; i < obj->gr_members.gr_members_len; i++)
@@ -316,8 +316,8 @@ nis_print_object (const nis_object * obj)
nis_print_rights (obj->zo_access);
printf (_("\nTime to Live : "));
print_ttl (obj->zo_ttl);
- printf (_("Creation Time : %s"), ctime (&obj->zo_oid.ctime));
- printf (_("Mod. Time : %s"), ctime (&obj->zo_oid.mtime));
+ printf (_("Creation Time : %s"), ctime ((time_t *)&obj->zo_oid.ctime));
+ printf (_("Mod. Time : %s"), ctime ((time_t *)&obj->zo_oid.mtime));
fputs (_("Object Type : "), stdout);
nis_print_objtype (obj->zo_data.zo_type);
switch (obj->zo_data.zo_type)