From: LaMont Jones Date: Sat, 22 Sep 2007 04:38:32 +0000 (-0600) Subject: setarch: fix compiler warning X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b0b71678c0cb9f563459f7c21282ffeff19f6adc;p=util-linux 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 --- diff --git a/sys-utils/setarch.c b/sys-utils/setarch.c index 413ce030..37ce4e5a 100644 --- a/sys-utils/setarch.c +++ b/sys-utils/setarch.c @@ -203,7 +203,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");