diff options
author | Daniel Stenberg <daniel@haxx.se> | 2001-01-05 10:11:41 +0000 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2001-01-05 10:11:41 +0000 |
commit | 4031104404c6ceed5e57134125dcdb6cac51c564 (patch) | |
tree | 18bd035e58e42180cf416d0d94d4726cd44d9d7f /lib/version.c | |
parent | 9f9cac7402f9f134be6f6d5b7fb830e9946a83d8 (diff) | |
download | curl-4031104404c6ceed5e57134125dcdb6cac51c564.tar.gz |
Internal symbols that aren't static are now prefixed with 'Curl_'
Diffstat (limited to 'lib/version.c')
-rw-r--r-- | lib/version.c | 25 |
1 files changed, 12 insertions, 13 deletions
diff --git a/lib/version.c b/lib/version.c index 6659f502e..9b2bbcded 100644 --- a/lib/version.c +++ b/lib/version.c @@ -33,9 +33,6 @@ char *curl_version(void) { static char version[200]; char *ptr; -#if defined(USE_SSLEAY) - static char sub[2]; -#endif strcpy(version, LIBCURL_NAME " " LIBCURL_VERSION ); ptr=strchr(version, '\0'); @@ -47,17 +44,19 @@ char *curl_version(void) (SSLEAY_VERSION_NUMBER>>20)&0xff, (SSLEAY_VERSION_NUMBER>>12)&0xf); #else - if(SSLEAY_VERSION_NUMBER&0x0f) { - sub[0]=(SSLEAY_VERSION_NUMBER&0x0f) + 'a' -1; - } - else - sub[0]=0; - - sprintf(ptr, " (SSL %x.%x.%x%s)", - (SSLEAY_VERSION_NUMBER>>12)&0xff, - (SSLEAY_VERSION_NUMBER>>8)&0xf, - (SSLEAY_VERSION_NUMBER>>4)&0xf, sub); + { + char sub[2]; + if(SSLEAY_VERSION_NUMBER&0x0f) { + sub[0]=(SSLEAY_VERSION_NUMBER&0x0f) + 'a' -1; + } + else + sub[0]=0; + sprintf(ptr, " (SSL %x.%x.%x%s)", + (SSLEAY_VERSION_NUMBER>>12)&0xff, + (SSLEAY_VERSION_NUMBER>>8)&0xf, + (SSLEAY_VERSION_NUMBER>>4)&0xf, sub); + } #endif ptr=strchr(ptr, '\0'); #endif |