mirror of
https://github.com/Tiiffi/mcrcon.git
synced 2025-10-28 11:51:08 -04:00
Tidy code formatting
This commit is contained in:
12
mcrcon.c
12
mcrcon.c
@ -196,25 +196,25 @@ int main(int argc, char *argv[])
|
|||||||
case 'i': terminal_mode = 1; break;
|
case 'i': terminal_mode = 1; break;
|
||||||
case 'r': global_raw_output = 1; break;
|
case 'r': global_raw_output = 1; break;
|
||||||
case 'w':
|
case 'w':
|
||||||
global_wait_seconds = mcrcon_parse_seconds(optarg); break;
|
global_wait_seconds = mcrcon_parse_seconds(optarg);
|
||||||
|
break;
|
||||||
|
|
||||||
case 'v':
|
case 'v':
|
||||||
puts(VER_STR"\nhttps://github.com/Tiiffi/mcrcon\n");
|
puts(VER_STR"\nhttps://github.com/Tiiffi/mcrcon\n");
|
||||||
exit(EXIT_SUCCESS);
|
exit(EXIT_SUCCESS);
|
||||||
|
|
||||||
case 'h': usage(); break;
|
case 'h': usage(); break;
|
||||||
|
|
||||||
default: exit(EXIT_FAILURE);
|
default: exit(EXIT_FAILURE);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (pass == NULL)
|
if (pass == NULL) {
|
||||||
{
|
|
||||||
puts("You must give password (-p password). Try 'mcrcon -h' or 'man mcrcon' for help.\n");
|
puts("You must give password (-p password). Try 'mcrcon -h' or 'man mcrcon' for help.\n");
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
if(optind == argc && terminal_mode == 0)
|
if(optind == argc && terminal_mode == 0) terminal_mode = 1;
|
||||||
terminal_mode = 1;
|
|
||||||
|
|
||||||
|
|
||||||
// safety features to prevent "IO: Connection reset" bug on the server side
|
// safety features to prevent "IO: Connection reset" bug on the server side
|
||||||
atexit(&exit_proc);
|
atexit(&exit_proc);
|
||||||
|
|||||||
Reference in New Issue
Block a user