24 lines
772 B
Plaintext
24 lines
772 B
Plaintext
$OpenBSD: patch-crawl_c,v 1.5 2010/05/23 16:25:21 espie Exp $
|
|
--- crawl.c.orig Sun May 18 03:26:41 2003
|
|
+++ crawl.c Sat May 22 16:42:06 2010
|
|
@@ -167,8 +167,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",
|
|
@@ -384,7 +384,7 @@ external_filter(char *program)
|
|
dup2(fromext[1], fileno(stdout));
|
|
close(fromext[0]);
|
|
|
|
- if (execlp(program, program, NULL) == -1)
|
|
+ if (execlp(program, program, (void *)NULL) == -1)
|
|
err(1, "execlp");
|
|
exit(0);
|
|
}
|