diff options
author | Matthew Nicholson <mnicholson@digium.com> | 2010-05-19 20:26:27 +0000 |
---|---|---|
committer | Matthew Nicholson <mnicholson@digium.com> | 2010-05-19 20:26:27 +0000 |
commit | 6eaf9b874f15a823a2dfd202eea9bfb67a8ed4f5 (patch) | |
tree | 596070c9c9a55dddaa01098a913a59afbae55bbe /main | |
parent | d38c6459f55adb90d8e7eb29d9f11fdf0777f3e5 (diff) |
Cast an unsigned int to a signed int when comparing it with 0.
(AST-377)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@264379 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'main')
-rw-r--r-- | main/udptl.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/main/udptl.c b/main/udptl.c index e48839095..0e88b2b4a 100644 --- a/main/udptl.c +++ b/main/udptl.c @@ -1097,7 +1097,7 @@ int ast_udptl_write(struct ast_udptl *s, struct ast_frame *f) /* Cook up the UDPTL packet, with the relevant EC info. */ len = udptl_build_packet(s, buf, sizeof(buf), f->data.ptr, len); - if (len > 0 && s->them.sin_port && s->them.sin_addr.s_addr) { + if ((signed int) len > 0 && s->them.sin_port && s->them.sin_addr.s_addr) { if ((res = sendto(s->fd, buf, len, 0, (struct sockaddr *) &s->them, sizeof(s->them))) < 0) ast_log(LOG_NOTICE, "(%s): UDPTL Transmission error to %s:%d: %s\n", LOG_TAG(s), ast_inet_ntoa(s->them.sin_addr), ntohs(s->them.sin_port), strerror(errno)); |