fix the return value of the progress callback
authorDavide Andreoli <dave@gurumeditation.it>
Fri, 28 Jan 2011 18:44:10 +0000 (18:44 +0000)
committerDavide Andreoli <dave@gurumeditation.it>
Fri, 28 Jan 2011 18:44:10 +0000 (18:44 +0000)
SVN revision: 56345

legacy/ecore/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
 }