MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
General Public License for more details.
*/
+
#include "config.h"
-#include "includes.h"
+#include <stdio.h>
+#include <unistd.h>
+
#include "opkg_download.h"
#include "opkg_message.h"
opkg_msg(ERROR, "Failed to download %s: %s.\n",
src, curl_easy_strerror(res));
free(tmp_file_location);
- return res;
+ return -1;
}
}
if (res) {
opkg_msg(ERROR, "Failed to download %s, wget returned %d.\n", src, res);
free(tmp_file_location);
- return res;
+ return -1;
}
}
#endif