* dispatch.c (dispatch): inet_ntop() returns const char *
authorEzra Peisach <epeisach@mit.edu>
Wed, 20 Sep 2000 17:16:43 +0000 (17:16 +0000)
committerEzra Peisach <epeisach@mit.edu>
Wed, 20 Sep 2000 17:16:43 +0000 (17:16 +0000)
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@12660 dc483132-0cff-0310-8789-dd5450dbe970

src/kdc/ChangeLog
src/kdc/dispatch.c

index c1d66bf664ddb55fc08b0cfc90df5385ec301de0..854c98f760a0b9c3dc9521a516bcc6d9722cd101 100644 (file)
@@ -1,3 +1,7 @@
+2000-09-20  Ezra Peisach  <epeisach@mit.edu>
+
+       * dispatch.c (dispatch): inet_ntop() returns const char *.
+
 2000-08-23  Ken Raeburn  <raeburn@mit.edu>
 
        * main.c (initialize_realms): For "cannot initialize realm"
index 9cfb6551e19cbb2a8477d5ab9cd080205bd93cfc..a1b0201815b33a0b9baa9e99a72b2d3df4207b9b 100644 (file)
@@ -52,18 +52,17 @@ dispatch(pkt, from, portnum, response)
     /* try the replay lookaside buffer */
     if (kdc_check_lookaside(pkt, from, response)) {
        /* a hit! */
-       char *name = 0;
+       const char *name = 0;
        char buf[46];
-       krb5_address *a = from->address;
 
 #ifdef HAVE_INET_NTOP
        name = inet_ntop (from->address->addrtype, from->address->contents,
                          buf, sizeof (buf));
 #else
        if (from->address->addrtype == ADDRTYPE_INET) {
-           struct sockaddr_in *sin
+           struct sockaddr_in *mysin
                = (struct sockaddr_in *)from->address->contents;
-           strcpy (buf, inet_ntoa (sin->sin_addr));
+           strcpy (buf, inet_ntoa (mysin->sin_addr));
            name = buf;
        }
 #endif