Skip to content

Commit

Permalink
Merge pull request #196 from mslehto/patch-4
Browse files Browse the repository at this point in the history
modules/nat_traversal: avoid clang warnings with cast to (enum _hdr_types_t)
  • Loading branch information
miconda committed Jun 9, 2015
2 parents 6518ba1 + 6589321 commit 9030b7d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions modules/nat_traversal/nat_traversal.c
Expand Up @@ -1474,7 +1474,7 @@ FixContact(struct sip_msg *msg)
}

offset = contact->uri.s - msg->buf;
anchor = del_lump(msg, offset, contact->uri.len, HDR_CONTACT_F);
anchor = del_lump(msg, offset, contact->uri.len, (enum _hdr_types_t)HDR_CONTACT_F);

if (!anchor) {
pkg_free(buf);
Expand All @@ -1484,7 +1484,7 @@ FixContact(struct sip_msg *msg)
len = sprintf(buf, "%.*s%s:%d%.*s", before_host.len, before_host.s,
newip.s, newport, after.len, after.s);

if (insert_new_lump_after(anchor, buf, len, HDR_CONTACT_F) == 0) {
if (insert_new_lump_after(anchor, buf, len, (enum _hdr_types_t)HDR_CONTACT_F) == 0) {
pkg_free(buf);
return -1;
}
Expand Down

0 comments on commit 9030b7d

Please sign in to comment.