From: Ezra Peisach Date: Mon, 4 Jun 2001 16:14:54 +0000 (+0000) Subject: * k524init.c: Inculde unistd.h for getopt() prototype X-Git-Tag: krb5-1.3-alpha1~1489 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=b199ea1dde432426c0a180845ce7cabb60dcbef3;p=krb5.git * k524init.c: Inculde unistd.h for getopt() prototype * test.c (do_remote): Comment out unused variables. * sendmsg.c (krb524_sendto_kdc): Cleanup assignment in conditional. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13266 dc483132-0cff-0310-8789-dd5450dbe970 --- diff --git a/src/krb524/ChangeLog b/src/krb524/ChangeLog index 5e5ff521e..9127e81e5 100644 --- a/src/krb524/ChangeLog +++ b/src/krb524/ChangeLog @@ -1,3 +1,11 @@ +2001-06-04 Ezra Peisach + + * k524init.c: Inculde unistd.h for getopt() prototype. + + * test.c (do_remote): Comment out unused variables. + + * sendmsg.c (krb524_sendto_kdc): Cleanup assignment in conditional. + 2001-05-08 Ken Raeburn * sendmsg.c (krb524_sendto_kdc): Do fallback if KRB5_REALM_UNKNOWN diff --git a/src/krb524/k524init.c b/src/krb524/k524init.c index a029096c5..307be1a4f 100644 --- a/src/krb524/k524init.c +++ b/src/krb524/k524init.c @@ -24,6 +24,7 @@ #include "com_err.h" #include +#include #include #include #include diff --git a/src/krb524/sendmsg.c b/src/krb524/sendmsg.c index c306423a2..3d7b433a7 100644 --- a/src/krb524/sendmsg.c +++ b/src/krb524/sendmsg.c @@ -184,11 +184,9 @@ krb524_sendto_kdc (context, message, realm, reply) waitlen.tv_sec = timeout; FD_ZERO(&readable); FD_SET(socklist[host], &readable); - if (nready = select(SOCKET_NFDS(socklist[host]), - &readable, - 0, - 0, - &waitlen)) { + nready = select(SOCKET_NFDS(socklist[host]), + &readable, 0, 0, &waitlen); + if (nready) { if (nready == SOCKET_ERROR) { if (SOCKET_ERRNO == SOCKET_EINTR) goto retry; diff --git a/src/krb524/test.c b/src/krb524/test.c index d4c5024a6..b243a1478 100644 --- a/src/krb524/test.c +++ b/src/krb524/test.c @@ -310,8 +310,10 @@ void do_remote(context, v5creds, server, key) char *server; krb5_keyblock *key; { +#if 0 struct sockaddr_in saddr; struct hostent *hp; +#endif CREDENTIALS v4creds; int ret;