fix the return value of the progress callback
authordavemds <davemds@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Fri, 28 Jan 2011 18:44:10 +0000 (18:44 +0000)
committerdavemds <davemds@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Fri, 28 Jan 2011 18:44:10 +0000 (18:44 +0000)
git-svn-id: svn+ssh://svn.enlightenment.org/var/svn/e/trunk/ecore@56345 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

examples/ecore_file_download_example.c

index bbfdbc2..3da2474 100644 (file)
@@ -28,7 +28,7 @@ progress_cb(void *data, const char *file,
             long int ultotal, long int ulnow)
 {
    printf("Progress: %ld/%ld\n", dlnow, dltotal);
-   return ECORE_CALLBACK_RENEW;
+   return 0; // 0 to continue the download, or 1 to abort
 }