diff --git a/src/server/slavefuncs.c b/src/server/slavefuncs.c --- a/src/server/slavefuncs.c +++ b/src/server/slavefuncs.c @@ -63,7 +63,7 @@ xmlNodePtr xml_quickxpath(xmlXPathContex } -/** Stub stub stubbiness ugh */ +/** Stub stub stubbiness ugh @TODO: Kill me. */ void tell_the_server(char *stuff){ } @@ -73,7 +73,7 @@ size_t curl_writetodisk(void *ptr, size_ return fwrite(ptr, size, nmemb, stream); } -/** Gets a URL with cURL and saves it to disk */ +/** Retrieves a URL with cURL and saves it to disk */ int curlget(char *url, char *out){ CURL *curl; CURLcode res; @@ -89,7 +89,7 @@ int curlget(char *url, char *out){ res = curl_easy_perform(curl); curl_easy_cleanup(curl); } - return 0; + return res; // 0 means OK, nonzero means AAAH badness } /** Posts a file to a url with cUrl */