0
0
mirror of https://gitlab.nic.cz/labs/bird.git synced 2025-01-03 15:41:54 +00:00

Socktest: Minor change

This commit is contained in:
Pavel Tvrdik 2016-04-05 09:09:57 +02:00
parent 2ce8589753
commit 6b8d11556e
2 changed files with 4 additions and 3 deletions

View File

@ -47,7 +47,10 @@ void
skt_open(sock *s)
{
if (sk_open(s) < 0)
SKT_ERR(s->err);
{
perror(s->err);
exit(1);
}
if (cf_mcast)
{

View File

@ -52,8 +52,6 @@ uint counter; /* global counter of send/recv packets */
uint cf_value; /* a value in packet */
uint cf_ttl;
#define SKT_ERR(x) do { perror(x); exit(-1); } while(0)
sock *skt_parse_args(int argc, char **argv, int is_send);
void bird_init(void);
void skt_open(sock *s);