]> granicus.if.org Git - curl/commitdiff
simplessl.c: fix my breakage
authorDaniel Stenberg <daniel@haxx.se>
Thu, 11 Feb 2016 09:20:48 +0000 (10:20 +0100)
committerDaniel Stenberg <daniel@haxx.se>
Thu, 11 Feb 2016 09:20:48 +0000 (10:20 +0100)
docs/examples/simplessl.c

index c543d2fe106a576d704d284d2644c5cff277b785..8af3aa13f6b40020b204103f33fde1a332028c00 100644 (file)
@@ -47,7 +47,6 @@
 
 int main(void)
 {
-  int i;
   CURL *curl;
   CURLcode res;
   FILE *headerfile;
@@ -55,7 +54,7 @@ int main(void)
 
   static const char *pCertFile = "testcert.pem";
   static const char *pCACertFile="cacert.pem";
-  static const char *pHeaderFile = "dumpit"
+  static const char *pHeaderFile = "dumpit";
 
   const char *pKeyName;
   const char *pKeyType;
@@ -131,10 +130,10 @@ int main(void)
                 curl_easy_strerror(res));
 
       /* we are done... */
-    }
+    } while (0);
     /* always cleanup */
     curl_easy_cleanup(curl);
-  } while(0);
+  }
 
   curl_global_cleanup();