mirror of
https://github.com/xdp-project/bpf-examples.git
synced 2024-05-06 15:54:53 +00:00
AF_XDP-interaction: Fix compiler warnings
warning: suggest parentheses around assignment used as truth value Signed-off-by: Jesper Dangaard Brouer <brouer@redhat.com>
This commit is contained in:
@ -1652,7 +1652,7 @@ int main(int argc, char **argv)
|
|||||||
* check return value seen from sendto() syscall, until it
|
* check return value seen from sendto() syscall, until it
|
||||||
* doesn't return an error.
|
* doesn't return an error.
|
||||||
*/
|
*/
|
||||||
while (err = tx_pkt(&cfg, xsks.sockets[0])) {
|
while ((err = tx_pkt(&cfg, xsks.sockets[0]))) {
|
||||||
fprintf(stderr, "WARN(%d): Failed to Tx pkt, will retry\n", err);
|
fprintf(stderr, "WARN(%d): Failed to Tx pkt, will retry\n", err);
|
||||||
sleep(1);
|
sleep(1);
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user