fixed compile warnings
authorMichael Gebetsroither <michael.geb@gmx.at>
Sun, 24 Dec 2006 11:55:18 +0000 (12:55 +0100)
committerMichael Gebetsroither <michael.geb@gmx.at>
Sun, 24 Dec 2006 11:55:18 +0000 (12:55 +0100)
compile/gtf.c
compile/reread_partition_table.c

index b5d88c3..7e9e8ef 100644 (file)
 
 #include <stdio.h>
 #include <stdlib.h>
+#include <string.h>
 #include <math.h>
 
 
index f80dd7b..57c3ae8 100644 (file)
@@ -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 ****************************************************************/