Fix server problems with argv
parent
24d2ea04a2
commit
cfb020a408
|
@ -24,7 +24,8 @@ void handle_signal(int signal) {
|
||||||
|
|
||||||
int main(int argc, char* argv[]) {
|
int main(int argc, char* argv[]) {
|
||||||
if (argc != 2) {
|
if (argc != 2) {
|
||||||
printf("%s", USAGE_STRING);
|
printf("%s\n", USAGE_STRING);
|
||||||
|
return 1;
|
||||||
}
|
}
|
||||||
char *port = argv[1];
|
char *port = argv[1];
|
||||||
long port_num = strtol(port, NULL, 10);
|
long port_num = strtol(port, NULL, 10);
|
||||||
|
|
Loading…
Reference in New Issue