]> rtime.felk.cvut.cz Git - frescor/frsh-forb.git/blobdiff - src/fwp/fwp/tests/timing/fwp-timing.c
Get rid of the most of other warnings
[frescor/frsh-forb.git] / src / fwp / fwp / tests / timing / fwp-timing.c
index 4ed0c28458fc6d08a1af20c6183e13d7c5e43744..b465bce8e2d068bc4bc96fb044576108079e8a83 100644 (file)
@@ -375,6 +375,7 @@ void *receiver(void *arg)
 
        while (!exit_flag) {
                ret = frsh_receive_sync(epdst, msg, rp->budget, &mlen, NULL);
+               if (ret) error(1, errno, "frsh_receive_sync");
                clock_gettime(CLOCK_MONOTONIC, &tsr);
                tss = msg->ts;
                if (msg->cnt != last_cnt+1) {
@@ -433,6 +434,7 @@ void *sender(void *arg)
                        clock_gettime(CLOCK_MONOTONIC, &next_period);
                }
                __sync_fetch_and_add(&stats.sent, 1);
+               if (ret) error(1, errno, "frsh_send_*");
 
                int delay_ms;
                if (p->jitter)