summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJohn Kohl <jtkohl@mit.edu>1991-05-01 11:37:13 +0000
committerJohn Kohl <jtkohl@mit.edu>1991-05-01 11:37:13 +0000
commitcab378936ed736c2aad2413e3b1b1bf1a121f08d (patch)
tree5665b977b093ca6ece26b8d0487991f833efe729 /src
parent6d15dd98fedec23bfd85108db5379e03d8e8f271 (diff)
clean up some warnings
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@2082 dc483132-0cff-0310-8789-dd5450dbe970
Diffstat (limited to 'src')
-rw-r--r--src/clients/klist/klist.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/clients/klist/klist.c b/src/clients/klist/klist.c
index a608492fd..813736a68 100644
--- a/src/clients/klist/klist.c
+++ b/src/clients/klist/klist.c
@@ -44,7 +44,7 @@ main(argc, argv)
krb5_creds creds;
char *cache_name;
krb5_principal princ;
- char *name, *sname;
+ char *name;
krb5_flags flags;
krb5_init_ets();
@@ -206,7 +206,7 @@ register krb5_creds *cred;
if (!cred->times.starttime)
cred->times.starttime = cred->times.authtime;
- stime = localtime(&cred->times.starttime);
+ stime = localtime((time_t *)&cred->times.starttime);
printf("valid %02d/%02d/%02d:%02d:%02d:%02d to ",
stime->tm_year,
stime->tm_mon + 1,
@@ -214,7 +214,7 @@ register krb5_creds *cred;
stime->tm_hour,
stime->tm_min,
stime->tm_sec);
- stime = localtime(&cred->times.endtime);
+ stime = localtime((time_t *)&cred->times.endtime);
printf("%02d/%02d/%02d:%02d:%02d:%02d",
stime->tm_year,
stime->tm_mon + 1,
@@ -223,7 +223,7 @@ register krb5_creds *cred;
stime->tm_min,
stime->tm_sec);
if (cred->times.renew_till) {
- stime = localtime(&cred->times.renew_till);
+ stime = localtime((time_t *)&cred->times.renew_till);
printf("\n\trenew until %02d/%02d/%02d:%02d:%02d:%02d",
stime->tm_year,
stime->tm_mon + 1,