From: Ezra Peisach Date: Wed, 20 Sep 2000 17:16:43 +0000 (+0000) Subject: * dispatch.c (dispatch): inet_ntop() returns const char * X-Git-Tag: krb5-1.3-alpha1~1893 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=29abad610e5a44a6c589059d2730a47bb16dec99;p=krb5.git * dispatch.c (dispatch): inet_ntop() returns const char * git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@12660 dc483132-0cff-0310-8789-dd5450dbe970 --- diff --git a/src/kdc/ChangeLog b/src/kdc/ChangeLog index c1d66bf66..854c98f76 100644 --- a/src/kdc/ChangeLog +++ b/src/kdc/ChangeLog @@ -1,3 +1,7 @@ +2000-09-20 Ezra Peisach + + * dispatch.c (dispatch): inet_ntop() returns const char *. + 2000-08-23 Ken Raeburn * main.c (initialize_realms): For "cannot initialize realm" diff --git a/src/kdc/dispatch.c b/src/kdc/dispatch.c index 9cfb6551e..a1b020181 100644 --- a/src/kdc/dispatch.c +++ b/src/kdc/dispatch.c @@ -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