X-Git-Url: http://git.grml.org/?a=blobdiff_plain;f=compile%2Freread_partition_table.c;h=90f83a21939bef87ae6ef4c192443feddb57a50c;hb=68552116672d8462fb256c0771888a4654c3687d;hp=f80dd7be20b979d1e85ffe3b19444f77edde0a7b;hpb=e720deae78f1eda5e6f62629606c194f16796762;p=grml-scripts.git diff --git a/compile/reread_partition_table.c b/compile/reread_partition_table.c index f80dd7b..90f83a2 100644 --- a/compile/reread_partition_table.c +++ b/compile/reread_partition_table.c @@ -4,7 +4,6 @@ * Authors: grml-team (grml.org), (c) Michael Prokop * 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 ****************************************************************/