diff options
author | Daniel Stenberg <daniel@haxx.se> | 2004-02-05 09:37:46 +0000 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2004-02-05 09:37:46 +0000 |
commit | 0c7cb0c10f41620003b81e1c53c08fc760ea3da0 (patch) | |
tree | 53b937a4c606d6bbe52cef4032ba3f94d0bc86b4 | |
parent | 4816294f5294bf0efe83aefa07560217d0085a90 (diff) |
prevent warning from that picky MIPSpro compiler
-rw-r--r-- | lib/version.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/lib/version.c b/lib/version.c index eaf20c0cd..41b00aa36 100644 --- a/lib/version.c +++ b/lib/version.c @@ -95,15 +95,15 @@ char *curl_version(void) { static char version[200]; char *ptr; - long num; strcpy(version, LIBCURL_NAME "/" LIBCURL_VERSION ); ptr=strchr(version, '\0'); #ifdef USE_SSLEAY - getssl_version(ptr, &num); - ptr=strchr(version, '\0'); -#else - (void)num; /* no compiler warning please */ + { + long num; + getssl_version(ptr, &num); + ptr=strchr(version, '\0'); + } #endif #ifdef HAVE_KRB4 |