[hackers] [ubase] Remember to return EXIT_FAILURE from main() || sin
commit 38a0ce084fb402a96802fc04d89680c30fac946b
Author: sin <sin_AT_2f30.org>
Date: Mon Apr 14 09:46:39 2014 +0100
Remember to return EXIT_FAILURE from main()
Doesn't matter in this case but gets rid of compiler warnings.
diff --git a/switch_root.c b/switch_root.c
index ede292e..318d08c 100644
--- a/switch_root.c
+++ b/switch_root.c
_AT_@ -134,4 +134,5 @@ main(int argc, char **argv)
/* execute init */
execv(argv[1], argv);
eprintf("can't execute '%s'
", argv[1]);
+ return EXIT_FAILURE;
}
Received on Mon Apr 14 2014 - 10:47:19 CEST
This archive was generated by hypermail 2.3.0
: Mon Apr 14 2014 - 10:48:23 CEST