]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
FS-3833 try this
authorAnthony Minessale <anthm@freeswitch.org>
Tue, 24 Jan 2012 14:17:17 +0000 (08:17 -0600)
committerAnthony Minessale <anthm@freeswitch.org>
Tue, 24 Jan 2012 14:17:17 +0000 (08:17 -0600)
libs/libnatpmp/natpmp.c

index 3678603b28707adc82e980b41145d50dee0bdf4d..d4b9dcbe31f1f9b2a66d0242aa2b8b534d718cb0 100644 (file)
@@ -171,9 +171,9 @@ int sendnewportmappingrequest(natpmp_t * p, int protocol,
        p->pending_request[1] = (char)protocol;
        p->pending_request[2] = 0;
        p->pending_request[3] = 0;
-       *((uint16_t *)(p->pending_request + 4)) = htons(privateport);
-       *((uint16_t *)(p->pending_request + 6)) = htons(publicport);
-       *((uint32_t *)(p->pending_request + 8)) = htonl(lifetime);
+       *((uint16_t *)(intptr_t)(p->pending_request + 4)) = htons(privateport);
+       *((uint16_t *)(intptr_t)(p->pending_request + 6)) = htons(publicport);
+       *((uint32_t *)(intptr_t)(p->pending_request + 8)) = htonl(lifetime);
        p->pending_request_len = 12;
        return sendnatpmprequest(p);
 }