aboutsummaryrefslogtreecommitdiff
path: root/docs/examples
diff options
context:
space:
mode:
authorKamil Dudka <kdudka@redhat.com>2017-08-30 14:16:35 +0200
committerKamil Dudka <kdudka@redhat.com>2017-08-30 14:16:35 +0200
commit7ec797b13aba7de38adb2022f6059dcc6dcd0441 (patch)
tree5f3cac6c1fb1461872d67001ebae4176d8e03366 /docs/examples
parentc86e21b624570e498e71d7d35c82b7ff193104c7 (diff)
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 ^
Diffstat (limited to 'docs/examples')
-rw-r--r--docs/examples/sslbackend.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/docs/examples/sslbackend.c b/docs/examples/sslbackend.c
index 84f1b0c24..1483dcc2e 100644
--- a/docs/examples/sslbackend.c
+++ b/docs/examples/sslbackend.c
@@ -55,11 +55,13 @@ int main(int argc, char **argv)
i, list[i]->name, list[i]->id);
return 0;
- } else if(isdigit(*name)) {
+ }
+ else if(isdigit(*name)) {
curl_sslbackend id = (curl_sslbackend)atoi(name);
result = curl_global_sslset(id, NULL, NULL);
- } else
+ }
+ else
result = curl_global_sslset(-1, name, NULL);
if(result == CURLSSLSET_UNKNOWN_BACKEND) {