]> granicus.if.org Git - curl/commitdiff
examples: Updated SMTP MAIL example to return libcurl result code
authorSteve Holme <steve_holme@hotmail.com>
Sun, 12 Jan 2014 15:44:51 +0000 (15:44 +0000)
committerSteve Holme <steve_holme@hotmail.com>
Sun, 12 Jan 2014 15:55:08 +0000 (15:55 +0000)
docs/examples/smtp-mail.c

index ed9524e877efb5c36e193a6c2f4d723485871d4e..af4d1b65b119e365c77a55cf2ae6096628287dd4 100644 (file)
@@ -133,5 +133,5 @@ int main(void)
     curl_easy_cleanup(curl);
   }
 
-  return 0;
+  return (int)res;
 }