From 5588d9a2e6cd79f2beba5e7669f874a5b9671bbb Mon Sep 17 00:00:00 2001 From: LaMont Jones Date: Fri, 21 Sep 2007 22:38:32 -0600 Subject: [PATCH] setarch: fix compiler warning NULL is not 0L. It's (void*)0. Passing that as a parameter to a function that takes an unsigned long results in a warning about the lack of a cast. Signed-off-by: LaMont Jones --- sys-utils/setarch.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys-utils/setarch.c b/sys-utils/setarch.c index 6eba24ae..e26a0586 100644 --- a/sys-utils/setarch.c +++ b/sys-utils/setarch.c @@ -199,7 +199,7 @@ int main(int argc, char *argv[]) } #if defined(__sparc64__) || defined(__sparc__) if (!strcmp(p, "sparc32bash")) { - if (set_arch(p, NULL)) + if (set_arch(p, 0L)) error(EXIT_FAILURE, errno, "Failed to set personality to %s", p); execl("/bin/bash", NULL); error(EXIT_FAILURE, errno, "/bin/bash"); -- 2.39.5