From 0c7cb0c10f41620003b81e1c53c08fc760ea3da0 Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Thu, 5 Feb 2004 09:37:46 +0000 Subject: prevent warning from that picky MIPSpro compiler --- lib/version.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'lib/version.c') 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 -- cgit v1.2.3