From 8f3b568cd7c7f618ad22ef7a3d07c3db28dfa77e Mon Sep 17 00:00:00 2001 From: Karel Zak Date: Tue, 23 Oct 2012 15:10:26 +0200 Subject: fdisk: fix compiler warning [-Wpointer-arith] and floating point exception Signed-off-by: Karel Zak --- sys-utils/readprofile.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sys-utils/readprofile.c') diff --git a/sys-utils/readprofile.c b/sys-utils/readprofile.c index 04d9c7375..5b77c4956 100644 --- a/sys-utils/readprofile.c +++ b/sys-utils/readprofile.c @@ -229,7 +229,7 @@ int main(int argc, char **argv) to_write = 1; } /* try to become root, just in case */ - setuid(0); + ignore_result( setuid(0) ); fd = open(defaultpro, O_WRONLY); if (fd < 0) err(EXIT_FAILURE, "%s", defaultpro); -- cgit v1.2.3-55-g7522