renamed stime -> printable_time to avoid conflict on HP/UX

git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@1407 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
Assar Westerlund
1997-03-14 03:13:42 +00:00
parent 7db97d2b00
commit d54daaeb6d

View File

@@ -1,7 +1,7 @@
#include "kuser_locl.h" #include "kuser_locl.h"
char* static char*
stime(time_t t) printable_time(time_t t)
{ {
static char s[128]; static char s[128];
strcpy(s, ctime(&t)+ 4); strcpy(s, ctime(&t)+ 4);
@@ -48,8 +48,8 @@ main (int argc, char **argv)
ccache, ccache,
&creds, &creds,
&cursor) == 0) { &cursor) == 0) {
printf ("%s ", stime(creds.times.authtime)); printf ("%s ", printable_time(creds.times.authtime));
printf ("%s ", stime(creds.times.endtime)); printf ("%s ", printable_time(creds.times.endtime));
err = krb5_unparse_name (context, creds.server, &str); err = krb5_unparse_name (context, creds.server, &str);
if (err) if (err)
abort (); abort ();