Skip to content

Commit 96e5daf

Browse files
committed
AF_XDP-interaction: Fix compiler warnings
warning: suggest parentheses around assignment used as truth value Signed-off-by: Jesper Dangaard Brouer <brouer@redhat.com>
1 parent 2135ae1 commit 96e5daf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

AF_XDP-interaction/af_xdp_user.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1652,7 +1652,7 @@ int main(int argc, char **argv)
16521652
* check return value seen from sendto() syscall, until it
16531653
* doesn't return an error.
16541654
*/
1655-
while (err = tx_pkt(&cfg, xsks.sockets[0])) {
1655+
while ((err = tx_pkt(&cfg, xsks.sockets[0]))) {
16561656
fprintf(stderr, "WARN(%d): Failed to Tx pkt, will retry\n", err);
16571657
sleep(1);
16581658
}

0 commit comments

Comments
 (0)