mirror of
https://github.com/moparisthebest/curl
synced 2024-12-21 23:58:49 -05:00
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
This commit is contained in:
parent
3fc831f9eb
commit
af72f198ba
@ -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");
|
||||
|
Loading…
Reference in New Issue
Block a user