$OpenBSD: patch-crawl_c,v 1.3 2002/12/28 23:29:13 pvalchev Exp $ --- crawl.c.orig Sun Jan 27 20:01:47 2002 +++ crawl.c Sat Dec 28 14:44:16 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", @@ -376,7 +376,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); } @@ -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 = ".";