diff options
Diffstat (limited to '3rdParty/LibNATPMP/src/libnatpmp/natpmp.c')
-rw-r--r-- | 3rdParty/LibNATPMP/src/libnatpmp/natpmp.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/3rdParty/LibNATPMP/src/libnatpmp/natpmp.c b/3rdParty/LibNATPMP/src/libnatpmp/natpmp.c index a09f217..3a49812 100644 --- a/3rdParty/LibNATPMP/src/libnatpmp/natpmp.c +++ b/3rdParty/LibNATPMP/src/libnatpmp/natpmp.c @@ -1,4 +1,4 @@ -/* $Id: natpmp.c,v 1.18 2013/11/26 08:47:36 nanard Exp $ */ +/* $Id: natpmp.c,v 1.20 2015/05/27 12:43:15 nanard Exp $ */ /* libnatpmp -Copyright (c) 2007-2013, Thomas BERNARD +Copyright (c) 2007-2015, Thomas BERNARD All rights reserved. @@ -118,3 +118,3 @@ int sendpendingrequest(natpmp_t * p) (struct sockaddr *)&addr, sizeof(addr));*/ - r = (int)send(p->s, p->pending_request, p->pending_request_len, 0); + r = (int)send(p->s, (const char *)p->pending_request, p->pending_request_len, 0); return (r<0) ? NATPMP_ERR_SENDERR : r; @@ -127,3 +127,3 @@ int sendnatpmprequest(natpmp_t * p) return NATPMP_ERR_INVALIDARGS; - /* TODO : check if no request is allready pending */ + /* TODO : check if no request is already pending */ p->has_pending_request = 1; @@ -206,3 +206,3 @@ LIBSPEC int readnatpmpresponse(natpmp_t * p, natpmpresp_t * response) return NATPMP_ERR_INVALIDARGS; - n = recvfrom(p->s, buf, sizeof(buf), 0, + n = recvfrom(p->s, (char *)buf, sizeof(buf), 0, (struct sockaddr *)&addr, &addrlen); |