Fix compilation warnings

This commit is contained in:
Pali Rohár committed 2012-06-23 17:39:33 +02:00
1 parent 58c0dbe275
commit 027a6d9a18
6 files changed
+15 -9

No files matched your search

+2 -2
View File
@@ -37,7 +37,7 @@ int rf_extract(char *dev, off_t from, off_t to, char *file)
FILE *fd = fopen(file, "wb+");
if (from>to) {
printf("Bad range %lld - %lld for %s\n", from, to, file);
printf("Bad range %lld - %lld for %s\n", (long long int)from, (long long int)to, file);
goto __rf_extract_exit;
}
if (fs == NULL) { perror(dev); goto __rf_extract_exit; }
@@ -56,7 +56,7 @@ int rf_extract(char *dev, off_t from, off_t to, char *file)
}
printf("\r%s: %lld bytes dumped from %s\n",
file, to-from, dev);
file, (long long int)(to-from), dev);
__rf_extract_exit:
if (fs) fclose(fs);