Avoid warning.
[oweals/openssl.git] / crypto / bio / bss_conn.c
index 21c379ed1a3209e19e207b1e7ed94dc42eaa3d2b..68c46e3d699418fd539c61f5ce5e4c2715b4f9fd 100644 (file)
@@ -70,8 +70,8 @@
 #define SOCKET_PROTOCOL IPPROTO_TCP
 #endif
 
-#if (__VMS_VER < 70000000) /* FIONBIO used as a switch to enable ioctl,
-                             and that isn't in VMS < 7.0 */
+#if (defined(VMS) && __VMS_VER < 70000000)
+/* FIONBIO used as a switch to enable ioctl, and that isn't in VMS < 7.0 */
 #undef FIONBIO
 #endif
 
@@ -570,7 +570,7 @@ static long conn_ctrl(BIO *b, int cmd, long num, char *ptr)
                if (data->param_hostname)
                        BIO_set_conn_hostname(dbio,data->param_hostname);
                BIO_set_nbio(dbio,data->nbio);
-               BIO_set_info_callback(dbio,data->info_callback);
+               (void)BIO_set_info_callback(dbio,data->info_callback);
                break;
        case BIO_CTRL_SET_CALLBACK:
                data->info_callback=(int (*)())ptr;