Tidy code formatting

This commit is contained in:
Tiiffi
2019-12-18 19:06:37 +02:00
parent a8863e1fcc
commit 0f796b6bbc

View File

@ -196,25 +196,25 @@ int main(int argc, char *argv[])
case 'i': terminal_mode = 1; break;
case 'r': global_raw_output = 1; break;
case 'w':
global_wait_seconds = mcrcon_parse_seconds(optarg); break;
global_wait_seconds = mcrcon_parse_seconds(optarg);
break;
case 'v':
puts(VER_STR"\nhttps://github.com/Tiiffi/mcrcon\n");
exit(EXIT_SUCCESS);
case 'h': usage(); break;
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");
return 0;
}
if(optind == argc && terminal_mode == 0)
terminal_mode = 1;
if(optind == argc && terminal_mode == 0) terminal_mode = 1;
// safety features to prevent "IO: Connection reset" bug on the server side
atexit(&exit_proc);