openbsd-ports/misc/rpm/patches/patch-rpm_c
pvalchev 4d9627f908 final round:
cast NULL sentinel to void * so it is 64bit on alpha & sparc64, use
NULL instead of '0' where appropriate.
2002-12-30 09:15:26 +00:00

13 lines
444 B
Plaintext

$OpenBSD: patch-rpm_c,v 1.1 2002/12/30 09:15:26 pvalchev Exp $
--- rpm.c.orig Mon Dec 30 00:28:26 2002
+++ rpm.c Mon Dec 30 00:28:31 2002
@@ -1191,7 +1191,7 @@ int main(int argc, const char ** argv)
close(p[1]);
dup2(p[0], STDIN_FILENO);
close(p[0]);
- execl("/bin/sh", "/bin/sh", "-c", pipeOutput, NULL);
+ execl("/bin/sh", "/bin/sh", "-c", pipeOutput, (void *)NULL);
fprintf(stderr, _("exec failed\n"));
}