Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/crypto/dist/krb4/lib/roken Mirror 32-bit alignment change in...



details:   https://anonhg.NetBSD.org/src/rev/916a2c637210
branches:  trunk
changeset: 520349:916a2c637210
user:      simonb <simonb%NetBSD.org@localhost>
date:      Tue Jan 08 03:27:59 2002 +0000

description:
Mirror 32-bit alignment change in crypto/dist/heimdal/lib/roken/resolve.c.

diffstat:

 crypto/dist/krb4/lib/roken/resolve.c |  7 ++++---
 1 files changed, 4 insertions(+), 3 deletions(-)

diffs (31 lines):

diff -r 13203315abdb -r 916a2c637210 crypto/dist/krb4/lib/roken/resolve.c
--- a/crypto/dist/krb4/lib/roken/resolve.c      Tue Jan 08 02:46:10 2002 +0000
+++ b/crypto/dist/krb4/lib/roken/resolve.c      Tue Jan 08 03:27:59 2002 +0000
@@ -45,7 +45,7 @@
 
 #include <assert.h>
 
-RCSID("$Id: resolve.c,v 1.1.1.3 2001/09/17 12:09:56 assar Exp $");
+RCSID("$Id: resolve.c,v 1.2 2002/01/08 03:27:59 simonb Exp $");
 
 #if defined(HAVE_RES_SEARCH) && defined(HAVE_DN_EXPAND)
 
@@ -385,7 +385,8 @@
     int num_srv = 0;
 
 #if defined(HAVE_INITSTATE) && defined(HAVE_SETSTATE)
-    char state[256], *oldstate;
+    int state[256 / sizeof(int)];
+    char *oldstate;
 #endif
 
     for(rr = r->head; rr; rr = rr->next) 
@@ -414,7 +415,7 @@
     qsort(srvs, num_srv, sizeof(*srvs), compare_srv);
 
 #if defined(HAVE_INITSTATE) && defined(HAVE_SETSTATE)
-    oldstate = initstate(time(NULL), state, sizeof(state));
+    oldstate = initstate(time(NULL), (char *) state, sizeof(state));
 #endif
 
     headp = &r->head;



Home | Main Index | Thread Index | Old Index