Skip to content
Snippets Groups Projects

Fix signed/unsigned comparison statements.

When a network interface of a path is down, bandwith of the concerned peer isn't published with a value tending toward zero as expected. It's caused by a signed/unsigned comparison.

As rist_send_seq_rtcp relies on sendmsg and sendto it can return only -1 on error as mentionned by their man pages.

Consequently, checking errors can be implemented with this statement: if (ret == (size_t)-1)

Merge request reports

Loading
Loading

Activity

Filter activity
  • Approvals
  • Assignees & reviewers
  • Comments (from bots)
  • Comments (from users)
  • Commits & branches
  • Edits
  • Labels
  • Lock status
  • Mentions
  • Merge request status
  • Tracking
Please register or sign in to reply
Loading