diff options
author | Tobias Markmann <tm@ayena.de> | 2017-05-16 15:26:38 (GMT) |
---|---|---|
committer | Kevin Smith <kevin.smith@isode.com> | 2017-05-17 08:04:04 (GMT) |
commit | c2abb2e8c248bb57c7478606f941223322983a8e (patch) | |
tree | d4c0f39c2933bcf4e3fb96230da60b09d9aabfdd /3rdParty/LibNATPMP/src/libnatpmp/natpmp.c | |
parent | edf519a67a28f9acb61af6d442d94f1aa43df688 (diff) | |
download | swift-c2abb2e8c248bb57c7478606f941223322983a8e.zip swift-c2abb2e8c248bb57c7478606f941223322983a8e.tar.bz2 |
Update 3rdParty/LibNATPMP to libnatpmp-20150609
Furthermore applied current patches.
Test-Information:
Builds on macOS 10.12.5 with Qt 5.4.2 and all unit and
integration tests pass.
Change-Id: I7a8a3b7e8b37b20532e3ed5fe32f1cef5b09b1f6
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,6 +1,6 @@ -/* $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. Redistribution and use in source and binary forms, with or without @@ -116,7 +116,7 @@ int sendpendingrequest(natpmp_t * p) addr.sin_addr.s_addr = p->gateway; r = (int)sendto(p->s, p->pending_request, p->pending_request_len, 0, (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; } @@ -125,7 +125,7 @@ int sendnatpmprequest(natpmp_t * p) int n; if(!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; p->try_number = 1; n = sendpendingrequest(p); @@ -204,7 +204,7 @@ LIBSPEC int readnatpmpresponse(natpmp_t * p, natpmpresp_t * response) int n; if(!p) 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); if(n<0) #ifdef WIN32 |