559f9fe989
* printf() size_t by casting to unsigned long and using %lu format ok mark@
24 lines
717 B
Plaintext
24 lines
717 B
Plaintext
$OpenBSD: patch-crawl_c,v 1.2 2002/07/16 16:08:23 naddy Exp $
|
|
--- crawl.c.orig Mon Jan 28 04:01:47 2002
|
|
+++ crawl.c Tue Jul 16 02:03:34 2002
|
|
@@ -159,8 +159,8 @@ image_saver(struct uri *uri)
|
|
return (-1);
|
|
|
|
if (uri->length != -1 && uri->bdlen != uri->length) {
|
|
- snprintf(tmp, sizeof(tmp), " (%4.1f%%/%d)",
|
|
- (float)uri->bdlen/uri->length*100, uri->length);
|
|
+ snprintf(tmp, sizeof(tmp), " (%4.1f%%/%ld)",
|
|
+ (float)uri->bdlen/uri->length*100, (long)uri->length);
|
|
p = tmp;
|
|
}
|
|
fprintf(stdout, "%s %s%s\n",
|
|
@@ -408,7 +408,7 @@ main(int argc, char **argv)
|
|
char *state = "crawl.state";
|
|
char *external = NULL;
|
|
char *resume = NULL;
|
|
- char ch;
|
|
+ int ch;
|
|
|
|
progname = argv[0];
|
|
saveimgdir = ".";
|