diff options
| author | David Lamparter <equinox@diac24.net> | 2019-12-11 11:41:54 +0100 |
|---|---|---|
| committer | David Lamparter <equinox@diac24.net> | 2019-12-11 11:41:54 +0100 |
| commit | 668b6011b3be57c044da2eef657748c27ae0c58c (patch) | |
| tree | ef40a52af63d9274d623caefd414d9eda5a9e55a | |
| parent | d621815a0e1d8649234222ea60c968dd0d4e0308 (diff) | |
zebra: fix sign-compare warning in cumulus mlag
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>
| -rw-r--r-- | zebra/zebra_mlag_private.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/zebra/zebra_mlag_private.c b/zebra/zebra_mlag_private.c index f7bf920b9c..3024407ada 100644 --- a/zebra/zebra_mlag_private.c +++ b/zebra/zebra_mlag_private.c @@ -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; |
