mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-10 10:08:18 +00:00
Newlines in ping tool
This commit is contained in:
parent
18315e8c79
commit
e8cf3fbec0
|
@ -16,14 +16,14 @@ int main(int argc, char **argv) // ignore_convention
|
|||
|
||||
if(argc != 2)
|
||||
{
|
||||
fprintf(stderr, "usage: %s server:port", argv[0]);
|
||||
fprintf(stderr, "usage: %s server:port\n", argv[0]);
|
||||
return 1;
|
||||
}
|
||||
|
||||
NETADDR Addr;
|
||||
if (net_host_lookup(argv[1], &Addr, NETTYPE_ALL))
|
||||
{
|
||||
fprintf(stderr, "host lookup failed");
|
||||
fprintf(stderr, "host lookup failed\n");
|
||||
return 1;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue