Skip to content

Commit

Permalink
Weird unnecessary casts
Browse files Browse the repository at this point in the history
  • Loading branch information
arr2036 committed Mar 22, 2014
1 parent 5ae7ce6 commit e4ba5f5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/modules/proto_bfd/bfd.c
Expand Up @@ -274,7 +274,7 @@ static void bfd_pipe_recv(UNUSED fr_event_list_t *xel, int fd, void *ctx)
* Read the header
*/
num = read(fd, &bfd, 4);
if ((num < 4) || (bfd.length < (unsigned) 4)) {
if ((num < 4) || (bfd.length < 4)) {
fail:
ERROR("BFD Failed reading from pipe!");
session->blocked = true;
Expand Down Expand Up @@ -1444,7 +1444,7 @@ static int bfd_socket_recv(rad_listen_t *listener)
return 0;
}

if (bfd.length < (unsigned) 24) {
if (bfd.length < 24) {
DEBUG("BFD packet has wrong length (%d < 24)", bfd.length);
return 0;
}
Expand Down

0 comments on commit e4ba5f5

Please sign in to comment.