mirror of https://github.com/moparisthebest/curl
examples/sslbackend.c: fix failure of 'make checksrc'
./sslbackend.c:58:3: warning: else after closing brace on same line (BRACEELSE) } else if(isdigit(*name)) { ^ ./sslbackend.c:62:3: warning: else after closing brace on same line (BRACEELSE) } else ^
This commit is contained in:
parent
c86e21b624
commit
7ec797b13a
|
@ -55,11 +55,13 @@ int main(int argc, char **argv)
|
||||||
i, list[i]->name, list[i]->id);
|
i, list[i]->name, list[i]->id);
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
} else if(isdigit(*name)) {
|
}
|
||||||
|
else if(isdigit(*name)) {
|
||||||
curl_sslbackend id = (curl_sslbackend)atoi(name);
|
curl_sslbackend id = (curl_sslbackend)atoi(name);
|
||||||
|
|
||||||
result = curl_global_sslset(id, NULL, NULL);
|
result = curl_global_sslset(id, NULL, NULL);
|
||||||
} else
|
}
|
||||||
|
else
|
||||||
result = curl_global_sslset(-1, name, NULL);
|
result = curl_global_sslset(-1, name, NULL);
|
||||||
|
|
||||||
if(result == CURLSSLSET_UNKNOWN_BACKEND) {
|
if(result == CURLSSLSET_UNKNOWN_BACKEND) {
|
||||||
|
|
Loading…
Reference in New Issue