diff options
author | mnicholson <mnicholson@f38db490-d61c-443f-a65b-d21fe96a405b> | 2010-05-19 20:27:56 +0000 |
---|---|---|
committer | mnicholson <mnicholson@f38db490-d61c-443f-a65b-d21fe96a405b> | 2010-05-19 20:27:56 +0000 |
commit | 54cc9736580466d814306297cd650834b6663043 (patch) | |
tree | f100d00675909e43edb94bab5d1abebf384452be /main | |
parent | f42e01a9beae8a40019bd0b7682ad9ec5efe45e1 (diff) |
Merged revisions 264379 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk
........
r264379 | mnicholson | 2010-05-19 15:26:27 -0500 (Wed, 19 May 2010) | 4 lines
Cast an unsigned int to a signed int when comparing it with 0.
(AST-377)
........
git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.6.2@264388 f38db490-d61c-443f-a65b-d21fe96a405b
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 c715387c0..b8fde1cc2 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)); |