From 3a4061029f0d4774ed25c33dc8c996111a46b955 Mon Sep 17 00:00:00 2001 From: Michael Gebetsroither Date: Sun, 24 Dec 2006 12:55:18 +0100 Subject: [PATCH] fixed compile warnings --- compile/gtf.c | 1 + compile/reread_partition_table.c | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) 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 ****************************************************************/ -- 2.1.4