Split grml-scripts into grml-scripts and grml-scripts-core
[grml-scripts.git] / compile / reread_partition_table.c
index f80dd7b..90f83a2 100644 (file)
@@ -4,7 +4,6 @@
  * Authors:       grml-team (grml.org), (c) Michael Prokop <mika@grml.org>
  * Bug-Reports:   see http://grml.org/bugs/
  * License:       This file is licensed under the GPL v2.
- * Latest change: Die Sep 05 23:13:57 CEST 2006 [mika]
  *******************************************************************************/
 
 // diet gcc -s -Os -o reread_partition_table reread_partition_table.c
@@ -44,7 +43,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 +62,7 @@ void main(int argc, char** argv)
     }
     reread_partition_table(argv[1]);
   }
+  return EXIT_SUCCESS;
 }
 
 /* END OF FILE ****************************************************************/