Remove entirely unnecessary pointer size guards
authorRichard Levitte <levitte@openssl.org>
Wed, 14 Sep 2016 18:53:06 +0000 (20:53 +0200)
committerRichard Levitte <levitte@openssl.org>
Thu, 15 Sep 2016 21:23:06 +0000 (23:23 +0200)
Reviewed-by: Andy Polyakov <appro@openssl.org>
Reviewed-by: Rich Salz <rsalz@openssl.org>
apps/s_client.c
apps/s_server.c

index 1c7429fd853a9cc1b67aeac7f4d1f97f06059bdc..8b4e1f5ce8dd19ba472e270e7595956d30576ab3 100644 (file)
@@ -1464,19 +1464,7 @@ int MAIN(int argc, char **argv)
 
 #ifdef FIONBIO
     if (c_nbio) {
-#if defined(OPENSSL_SYS_VMS) && defined(__VMS_VER) && (__VMS_VER >= 70000000)  
-        /* For 64-bit --> 32-bit restricted APIs (IOCTL) */
-#if __INITIAL_POINTER_SIZE == 64 
-#pragma __required_pointer_size __save 
-#pragma __required_pointer_size 32 
-#endif 
-        unsigned int l = 1;
-#if __INITIAL_POINTER_SIZE == 64 
-#pragma __required_pointer_size __restore 
-#endif 
-#else  
         unsigned long l = 1;
-#endif /* OPENSSL_SYS_VMS */
 
         BIO_printf(bio_c_out, "turning on non blocking io\n");
         if (BIO_socket_ioctl(s, FIONBIO, &l) < 0) {
index a835db00811db6136d8ce1d71526e10df4ea0a68..f0a94d61e16f5fec31ed9920c7deb875b6e6316c 100644 (file)
@@ -2203,19 +2203,7 @@ static int sv_body(char *hostname, int s, int stype, unsigned char *context)
     }
 #ifdef FIONBIO
     if (s_nbio) {
-#    if defined(OPENSSL_SYS_VMS) && defined(__VMS_VER) && (__VMS_VER >= 70000000)               
-        /* For 64-bit --> 32-bit restricted APIs (IOCTL) */             
-#       if __INITIAL_POINTER_SIZE == 64                 
-#           pragma __required_pointer_size __save               
-#           pragma __required_pointer_size 32           
-#   endif               
-        unsigned int sl =1; 
-#       if __INITIAL_POINTER_SIZE == 64                 
-#           pragma __required_pointer_size __restore            
-#       endif           
-#    else               
         unsigned long sl = 1;
-#    endif /* OPENSSL_SYS_VMS */
 
         if (!s_quiet)
             BIO_printf(bio_err, "turning on non blocking io\n");
@@ -2850,20 +2838,8 @@ static int www_body(char *hostname, int s, int stype, unsigned char *context)
 
 #ifdef FIONBIO
     if (s_nbio) {
+        unsigned long sl = 1;
 
-#    if defined(OPENSSL_SYS_VMS) && defined(__VMS_VER) && (__VMS_VER >= 70000000)               
-        /* For 64-bit --> 32-bit restricted APIs (IOCTL) */             
-#       if __INITIAL_POINTER_SIZE == 64                 
-#           pragma __required_pointer_size __save               
-#           pragma __required_pointer_size 32           
-#   endif               
-        unsigned int sl ;
-#       if __INITIAL_POINTER_SIZE == 64                 
-#           pragma __required_pointer_size __restore            
-#       endif           
-#    else               
-        unsigned long sl=1;             
-#    endif /* OPENSSL_SYS_VMS */
         if (!s_quiet)
             BIO_printf(bio_err, "turning on non blocking io\n");
         if (BIO_socket_ioctl(s, FIONBIO, &sl) < 0)