]> git.ipfire.org Git - thirdparty/bird.git/commitdiff
Socktest: Minor change
authorPavel Tvrdik <pawel.tvrdik@gmail.com>
Tue, 5 Apr 2016 07:09:57 +0000 (09:09 +0200)
committerPavel Tvrdik <pawel.tvrdik@gmail.com>
Tue, 5 Apr 2016 07:09:57 +0000 (09:09 +0200)
socktest/common.c
socktest/common.h

index 854fda4073699d61f31df047b8d77f8ffb837d58..684103ae236af92d7d65faefe04283ea9944cbef 100644 (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)
   {
index ff92908fd51dcb3bec7d68fbdca777bbc005b8bd..1dfd8d70d85ff1f2af0ae482ab4fc67268ad64b0 100644 (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);