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 <[EMAIL PROTECTED]>
---
sys-utils/setarch.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/sys-utils/setarch.c b/sys-utils/setarch.c
index aef18a4..c802bb3 100644
--- a/sys-utils/setarch.c
+++ b/sys-utils/setarch.c
@@ -229,7 +229,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");
--
1.5.2.5
-
To unsubscribe from this list: send the line "unsubscribe util-linux-ng" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at http://vger.kernel.org/majordomo-info.html