(fake_getnameinfo) [__GNUC__ && __mips__]: Use const when
referencing bytes of supplied address.
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@14296
dc483132-0cff-0310-8789-
dd5450dbe970
+2002-03-27 Ken Raeburn <raeburn@mit.edu>
+
+ * fake-addrinfo.h [NEED_FAKE_GETADDRINFO]: Include errno.h.
+ (fake_getnameinfo) [__GNUC__ && __mips__]: Use const when
+ referencing bytes of supplied address.
+
2002-03-26 Ken Raeburn <raeburn@mit.edu>
* fake-addrinfo.h: Incorporate all of fake-addrinfo.c. Make all
using gcc 2.95; we get back "0.0.0.0". Since this in a
configuration still important at Athena, here's the
workaround.... */
- unsigned char *uc = (unsigned char *) &sinp->sin_addr;
+ const unsigned char *uc = (const unsigned char *) &sinp->sin_addr;
char tmpbuf[20];
numeric_host:
sprintf(tmpbuf, "%d.%d.%d.%d", uc[0], uc[1], uc[2], uc[3]);
return 0;
}
+#include <errno.h>
+
static inline
char *gai_strerror (int code)
{