summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThorsten Lockert <tholo@cvs.openbsd.org>1996-11-07 07:11:49 +0000
committerThorsten Lockert <tholo@cvs.openbsd.org>1996-11-07 07:11:49 +0000
commit418f6cc8ed9c3822bf64dbe6bb70e116590fdfee (patch)
treee201be0b811ed87e680754f192760714332fb91c
parent60d7d8333a81e0c9f3f73a2d65bc618c6b8812b7 (diff)
64bit fixes from -tih
-rw-r--r--kerberosIV/krb/mk_priv.c4
-rw-r--r--kerberosIV/krb/mk_safe.c6
2 files changed, 5 insertions, 5 deletions
diff --git a/kerberosIV/krb/mk_priv.c b/kerberosIV/krb/mk_priv.c
index 968ae6bc860..b591bc6f59a 100644
--- a/kerberosIV/krb/mk_priv.c
+++ b/kerberosIV/krb/mk_priv.c
@@ -53,7 +53,7 @@ or implied warranty.
static u_int32_t c_length;
static struct timeval msg_time;
static u_char msg_time_5ms;
-static long msg_time_sec;
+static int32_t msg_time_sec;
/*
* krb_mk_priv() constructs an AUTH_MSG_PRIVATE message. It takes
@@ -121,7 +121,7 @@ krb_mk_priv(in, out, length, schedule, key, sender, receiver)
if (gettimeofday(&msg_time,(struct timezone *)0)) {
return -1;
}
- msg_time_sec = (long) msg_time.tv_sec;
+ msg_time_sec = (int32_t) msg_time.tv_sec;
msg_time_5ms = msg_time.tv_usec/5000; /* 5ms quanta */
p = out;
diff --git a/kerberosIV/krb/mk_safe.c b/kerberosIV/krb/mk_safe.c
index e652d9ac0b4..3ee06da4930 100644
--- a/kerberosIV/krb/mk_safe.c
+++ b/kerberosIV/krb/mk_safe.c
@@ -54,7 +54,7 @@ static u_int32_t cksum;
static des_cblock big_cksum[2];
static struct timeval msg_time;
static u_char msg_time_5ms;
-static long msg_time_sec;
+static int32_t msg_time_sec;
/*
* krb_mk_safe() constructs an AUTH_MSG_SAFE message. It takes some
@@ -111,7 +111,7 @@ krb_mk_safe(in, out, length, key, sender, receiver)
if (gettimeofday(&msg_time,(struct timezone *)0)) {
return -1;
}
- msg_time_sec = (long) msg_time.tv_sec;
+ msg_time_sec = (int32_t) msg_time.tv_sec;
msg_time_5ms = msg_time.tv_usec/5000; /* 5ms quanta */
p = out;
@@ -172,6 +172,6 @@ krb_mk_safe(in, out, length, key, sender, receiver)
bcopy((char *)big_cksum,(char *)p,sizeof(big_cksum));
p += sizeof(big_cksum);
- return ((long)(p - out)); /* resulting size */
+ return ((int32_t)(p - out)); /* resulting size */
}