From: Michael Gebetsroither Date: Sun, 24 Dec 2006 11:55:18 +0000 (+0100) Subject: fixed compile warnings X-Git-Tag: 0.9.12~6 X-Git-Url: http://git.grml.org/?p=grml-scripts.git;a=commitdiff_plain;h=3a4061029f0d4774ed25c33dc8c996111a46b955 fixed compile warnings --- diff --git a/compile/gtf.c b/compile/gtf.c index b5d88c3..7e9e8ef 100644 --- a/compile/gtf.c +++ b/compile/gtf.c @@ -108,6 +108,7 @@ #include #include +#include #include diff --git a/compile/reread_partition_table.c b/compile/reread_partition_table.c index f80dd7b..57c3ae8 100644 --- a/compile/reread_partition_table.c +++ b/compile/reread_partition_table.c @@ -44,7 +44,7 @@ int reread_partition_table(char *dev) } } -void main(int argc, char** argv) +int main(int argc, char** argv) { if (getuid() != 0){ printf("Error: reread_partition_table requires root permissions\n"); @@ -63,6 +63,7 @@ void main(int argc, char** argv) } reread_partition_table(argv[1]); } + return EXIT_SUCCESS; } /* END OF FILE ****************************************************************/