]> git.proxmox.com Git - mirror_frr.git/commitdiff
zebra: fix sign-compare warning in cumulus mlag
authorDavid Lamparter <equinox@diac24.net>
Wed, 11 Dec 2019 10:41:54 +0000 (11:41 +0100)
committerDavid Lamparter <equinox@diac24.net>
Wed, 11 Dec 2019 10:41:54 +0000 (11:41 +0100)
This trips up the CI on Ubuntu 16.04.  (I guess the code wasn't getting
built there before...)

Signed-off-by: David Lamparter <equinox@diac24.net>
zebra/zebra_mlag_private.c

index f7bf920b9c4e51fd5ee09b4fa1eb4a47d48ffa2d..3024407ada0b2ea23dbbc5f1e61153904d46cad1 100644 (file)
@@ -100,7 +100,7 @@ static int zebra_mlag_read(struct thread *thread)
                        return -1;
                }
                mlag_rd_buf_offset += data_len;
-               if (data_len != (ssize_t)ZEBRA_MLAG_LEN_SIZE - curr_len) {
+               if (data_len != (ssize_t)(ZEBRA_MLAG_LEN_SIZE - curr_len)) {
                        /* Try again later */
                        zebra_mlag_sched_read();
                        return 0;
@@ -129,7 +129,7 @@ static int zebra_mlag_read(struct thread *thread)
                        return -1;
                }
                mlag_rd_buf_offset += data_len;
-               if (data_len != (ssize_t)tot_len - curr_len) {
+               if (data_len != (ssize_t)(tot_len - curr_len)) {
                        /* Try again later */
                        zebra_mlag_sched_read();
                        return 0;