diff options
author | LaMont Jones | 2007-09-22 06:38:32 +0200 |
---|---|---|
committer | Karel Zak | 2007-09-23 21:34:33 +0200 |
commit | 0901c3a4670b8d32c2668b1612cc0fad2a33ce14 (patch) | |
tree | e61f842c6f76273374f574cfc80030a7eb076489 /sys-utils/setarch.c | |
parent | mount: doesn't drop privileges properly when calling helpers (diff) | |
download | kernel-qcow2-util-linux-0901c3a4670b8d32c2668b1612cc0fad2a33ce14.tar.gz kernel-qcow2-util-linux-0901c3a4670b8d32c2668b1612cc0fad2a33ce14.tar.xz kernel-qcow2-util-linux-0901c3a4670b8d32c2668b1612cc0fad2a33ce14.zip |
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 <lamont@debian.org>
Diffstat (limited to 'sys-utils/setarch.c')
-rw-r--r-- | 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 5379c3073..b98d8d37b 100644 --- a/sys-utils/setarch.c +++ b/sys-utils/setarch.c @@ -225,7 +225,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"); |