cast in call to krb5_ms_timeofday
authorJohn Kohl <jtkohl@mit.edu>
Tue, 11 Sep 1990 16:24:38 +0000 (16:24 +0000)
committerJohn Kohl <jtkohl@mit.edu>
Tue, 11 Sep 1990 16:24:38 +0000 (16:24 +0000)
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@1123 dc483132-0cff-0310-8789-dd5450dbe970

src/lib/krb5/krb/mk_req_ext.c

index beee9fc43330642d9b95f6464804fa70e8420e18..0f824301be83699ac0c85d5d95c43811e8138bf5 100644 (file)
@@ -188,5 +188,8 @@ const krb5_checksum *cksum;
 {
     authent->client = creds->client;
     authent->checksum = (krb5_checksum *)cksum;
-    return(krb5_ms_timeofday(&authent->ctime, &authent->cmsec));
+
+    /* cmsec is unsigned, time is signed, hence the cast */
+    return(krb5_ms_timeofday(&authent->ctime, 
+                            (krb5_int16 *)&authent->cmsec));
 }