diff options
Diffstat (limited to 'src/lib/libcrypto/ui/ui_openssl.c')
-rw-r--r-- | src/lib/libcrypto/ui/ui_openssl.c | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/src/lib/libcrypto/ui/ui_openssl.c b/src/lib/libcrypto/ui/ui_openssl.c index a38c7581e6..e319faa47b 100644 --- a/src/lib/libcrypto/ui/ui_openssl.c +++ b/src/lib/libcrypto/ui/ui_openssl.c | |||
@@ -122,15 +122,9 @@ | |||
122 | * sigaction and fileno included. -pedantic would be more appropriate for | 122 | * sigaction and fileno included. -pedantic would be more appropriate for |
123 | * the intended purposes, but we can't prevent users from adding -ansi. | 123 | * the intended purposes, but we can't prevent users from adding -ansi. |
124 | */ | 124 | */ |
125 | #if defined(OPENSSL_SYSNAME_VXWORKS) | ||
126 | #include <sys/types.h> | ||
127 | #endif | ||
128 | |||
129 | #if !defined(_POSIX_C_SOURCE) && defined(OPENSSL_SYS_VMS) | 125 | #if !defined(_POSIX_C_SOURCE) && defined(OPENSSL_SYS_VMS) |
130 | #ifndef _POSIX_C_SOURCE | ||
131 | #define _POSIX_C_SOURCE 2 | 126 | #define _POSIX_C_SOURCE 2 |
132 | #endif | 127 | #endif |
133 | #endif | ||
134 | #include <signal.h> | 128 | #include <signal.h> |
135 | #include <stdio.h> | 129 | #include <stdio.h> |
136 | #include <string.h> | 130 | #include <string.h> |
@@ -404,8 +398,8 @@ static int read_till_nl(FILE *in) | |||
404 | char buf[SIZE+1]; | 398 | char buf[SIZE+1]; |
405 | 399 | ||
406 | do { | 400 | do { |
407 | if (!fgets(buf,SIZE,in)) | 401 | if (fgets(buf,sizeof(buf),in) == NULL) |
408 | return 0; | 402 | break; |
409 | } while (strchr(buf,'\n') == NULL); | 403 | } while (strchr(buf,'\n') == NULL); |
410 | return 1; | 404 | return 1; |
411 | } | 405 | } |