diff options
author | Matt Caswell <matt@openssl.org> | 2015-04-30 09:43:11 +0100 |
---|---|---|
committer | Matt Caswell <matt@openssl.org> | 2015-04-30 11:35:18 +0100 |
commit | a3ed492f58d1febb9e048fb6ab5b96983569bf3b (patch) | |
tree | d85c731342bab42813056cc409f3948352fa7918 /apps/opt.c | |
parent | fb456902758d1c9a36ebb1327e81e98e53c26df6 (diff) | |
download | openssl-a3ed492f58d1febb9e048fb6ab5b96983569bf3b.tar.gz |
Fix windows build
The big apps cleanup broke the windows build. This commit
fixes some miscellaneous issues so that it builds again.
Reviewed-by: Andy Polyakov <appro@openssl.org>
Diffstat (limited to 'apps/opt.c')
-rw-r--r-- | apps/opt.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/apps/opt.c b/apps/opt.c index df2bea5504..fbe4c4bebc 100644 --- a/apps/opt.c +++ b/apps/opt.c @@ -54,7 +54,7 @@ #if !defined(OPENSSL_SYS_MSDOS) # include OPENSSL_UNISTD #endif -#include <unistd.h> + #include <stdlib.h> #include <errno.h> #include <ctype.h> @@ -96,11 +96,11 @@ char *opt_progname(const char *argv0) /* Strip off trailing nonsense. */ n = strlen(p); if (n > 4 && - (strcmp(&p[n - 4], ".exe") == 0 || strcmp(&p[n - 4], ".EXE") == 0) + (strcmp(&p[n - 4], ".exe") == 0 || strcmp(&p[n - 4], ".EXE") == 0)) n -= 4; #if defined(OPENSSL_SYS_NETWARE) if (n > 4 && - (strcmp(&p[n - 4], ".nlm") == 0 || strcmp(&p[n - 4], ".NLM") == 0) + (strcmp(&p[n - 4], ".nlm") == 0 || strcmp(&p[n - 4], ".NLM") == 0)) n -= 4; #endif @@ -108,7 +108,7 @@ char *opt_progname(const char *argv0) if (n > sizeof prog - 1) n = sizeof prog - 1; for (q = prog, i = 0; i < n; i++, p++) - q++ = isupper(*p) ? tolower(*p) : *p; + *q++ = isupper(*p) ? tolower(*p) : *p; *q = '\0'; return prog; } |