Some tiny fixes.
authorBodo Möller <bodo@openssl.org>
Wed, 14 Apr 1999 20:17:23 +0000 (20:17 +0000)
committerBodo Möller <bodo@openssl.org>
Wed, 14 Apr 1999 20:17:23 +0000 (20:17 +0000)
Submitted by:
Reviewed by:
PR:

Submitted by:
Reviewed by:
PR:

apps/s_client.c
apps/s_socket.c
crypto/des/read_pwd.c

index 7140f8ba2b8494810ffe225e90994f982f7adedf..21c4cac90c34034080cca774a7b258fcd70772e6 100644 (file)
@@ -442,8 +442,8 @@ re_start:
                ssl_pending = read_ssl && SSL_pending(con);
 
                if (!ssl_pending)
-#ifndef WINDOWS
                        {
+#ifndef WINDOWS
                        if (tty_on)
                                {
                                if (read_tty)  FD_SET(fileno(stdin),&readfds);
index 56204e0be24b25f0cf1162dce70aae1fe64f43d1..158014094f5b318601f4eb8297f1ed1b1f6b6ae4 100644 (file)
@@ -345,7 +345,8 @@ char *ip;
 #if defined SOL_SOCKET && defined SO_REUSEADDR
                {
                int j = 1;
-               setsockopt(s, SOL_SOCKET, SO_REUSEADDR, &j, sizeof j);
+               setsockopt(s, SOL_SOCKET, SO_REUSEADDR,
+                          (const void *) &j, sizeof j);
                }
 #endif
        if (bind(s,(struct sockaddr *)&server,sizeof(server)) == -1)
index 45f66b5da1aabc486a5e5f648e63c6697536faa3..ac6a548fc306280293cb5980b03e9bed7926e450 100644 (file)
@@ -56,7 +56,7 @@
  * [including the GNU Public Licence.]
  */
 
-#if !defined(MSDOS) && !defined(VMS)
+#if !defined(MSDOS) && !defined(VMS) && !defined(WIN32)
 #include <unistd.h>
 /* If unistd.h defines _POSIX_VERSION, we conclude that we
  * are on a POSIX system and have sigaction and termios. */