* k524init.c: Inculde unistd.h for getopt() prototype
authorEzra Peisach <epeisach@mit.edu>
Mon, 4 Jun 2001 16:14:54 +0000 (16:14 +0000)
committerEzra Peisach <epeisach@mit.edu>
Mon, 4 Jun 2001 16:14:54 +0000 (16:14 +0000)
* 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

src/krb524/ChangeLog
src/krb524/k524init.c
src/krb524/sendmsg.c
src/krb524/test.c

index 5e5ff521e089eb5671107f471aaccf574fe53160..9127e81e533e64199b5f6cda0cfa85967906d737 100644 (file)
@@ -1,3 +1,11 @@
+2001-06-04  Ezra Peisach  <epeisach@mit.edu>
+
+       * 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  <raeburn@mit.edu>
 
        * sendmsg.c (krb524_sendto_kdc): Do fallback if KRB5_REALM_UNKNOWN
index a029096c5aaff0210f65b778d49190f61f23a55e..307be1a4f0275b805c8a7f49f05f3b938aaf9a1f 100644 (file)
@@ -24,6 +24,7 @@
 #include "com_err.h"
 
 #include <stdio.h>
+#include <unistd.h>
 #include <string.h>
 #include <signal.h>
 #include <sys/types.h>
index c306423a2f6563508ce27b8c344ef3333f316556..3d7b433a77719f6fb5a4fd17ece3cd5cc3b91749 100644 (file)
@@ -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;
index d4c5024a65b84d17ca9ed80e3d1967ab459e4c14..b243a14782ba995030714e1294b669d6603dd4e0 100644 (file)
@@ -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;