diff options
author | Daniel Stenberg <daniel@haxx.se> | 2004-05-06 07:32:30 +0000 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2004-05-06 07:32:30 +0000 |
commit | af72f198ba486858d0794e272bb090b50db04a57 (patch) | |
tree | 3dca3e53a848ed501761213fabea66a8731f6f34 | |
parent | 3fc831f9eb906a5471222e584fc67c1590c7afc3 (diff) |
removed the unused 'len' variable, made use of the ptr pointer even if no
extra lib is used to prevent compiler warnings ("variable set but not used")
on that case
-rw-r--r-- | lib/version.c | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/lib/version.c b/lib/version.c index 150d52b31..3f981e2b5 100644 --- a/lib/version.c +++ b/lib/version.c @@ -98,10 +98,9 @@ static void getssl_version(char *ptr, long *num) char *curl_version(void) { static char version[200]; - char *ptr; - int len = sizeof(version); - strcpy(version, LIBCURL_NAME "/" LIBCURL_VERSION ); - ptr=strchr(version, '\0'); + char *ptr=version; + strcpy(ptr, LIBCURL_NAME "/" LIBCURL_VERSION ); + ptr=strchr(ptr, '\0'); #ifdef USE_SSLEAY { @@ -110,7 +109,6 @@ char *curl_version(void) ptr=strchr(version, '\0'); } #endif - len -= strlen(version); #ifdef HAVE_KRB4 sprintf(ptr, " krb4"); |