From: Jason Self Date: Sat, 19 Sep 2015 04:13:36 +0000 (-0700) Subject: zilasm/main: Format to Allman style X-Git-Url: https://jxself.org/git/?a=commitdiff_plain;h=59a5f290b66f5f9cefe6092fe721674a5a90b141;p=zilutils.git zilasm/main: Format to Allman style --- diff --git a/zilasm/main.c b/zilasm/main.c index d9b17b2..1621676 100644 --- a/zilasm/main.c +++ b/zilasm/main.c @@ -59,7 +59,7 @@ void print_version() "\n" "This is free software: you are free to change and redistribute it.\n" "There is NO WARRANTY, to the extent permitted by law.\n" - ); + ); exit(0); } @@ -75,7 +75,7 @@ void print_usage(int failed) "--zorkid (accepts digits, defaults to 0 if not specified)\n" "--serial (six characters of ASCII, defaults to current date\n" " in the form YYMMDD if not specified)\n" - ); + ); exit(failed); } @@ -151,12 +151,21 @@ int main(int argc, char *argv[], char *envp[]) { switch (opt) { - case 'h' : print_usage(0); - case 'V' : print_version(); - case ZVERSION: parse_intarg(&Config.zversion, "zversion", 1, 8, 1); break; - case ZORKID : parse_intarg(&Config.zorkid, "zorkid", 0, 255, 0); break; - case ZSERIAL : parse_zserial(); break; - default : wrong_arg(); + case 'h' : + print_usage(0); + case 'V' : + print_version(); + case ZVERSION: + parse_intarg(&Config.zversion, "zversion", 1, 8, 1); + break; + case ZORKID : + parse_intarg(&Config.zorkid, "zorkid", 0, 255, 0); + break; + case ZSERIAL : + parse_zserial(); + break; + default : + wrong_arg(); } } @@ -167,7 +176,7 @@ int main(int argc, char *argv[], char *envp[]) "- ZorkID: %d\n" "- ZSerial: %s\n", Config.zversion, Config.zorkid, Config.zserial - ); + ); return 0; }