Skip to content

Commit 9527220

Browse files
committed
fix minor compiler errors
Signed-off-by: hayati ayguen <h_ayguen@web.de>
1 parent 9fb72b3 commit 9527220

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

src/SimpleSocket.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -216,9 +216,9 @@ bool CSimpleSocket::GetAddrInfoStatic(const char *pAddr, uint16 nPort, struct in
216216
if ( nPort )
217217
snprintf( aServ, 63, "%d", (int)nPort );
218218
else
219-
pServ = nullptr;
219+
pServ = 0;
220220

221-
rv = getaddrinfo(pAddr, pServ, &hints, &servinfo );
221+
rv = ::getaddrinfo(pAddr, pServ, &hints, &servinfo );
222222
if ( rv != 0 )
223223
return false;
224224

@@ -283,9 +283,9 @@ bool CSimpleSocket::GetAddrInfo(const char *pAddr, uint16 nPort, struct in_addr
283283
if ( nPort )
284284
snprintf( aServ, 63, "%d", (int)nPort );
285285
else
286-
pServ = nullptr;
286+
pServ = 0;
287287

288-
rv = getaddrinfo(pAddr, pServ, &hints, &servinfo );
288+
rv = ::getaddrinfo(pAddr, pServ, &hints, &servinfo );
289289
if ( rv != 0 )
290290
{
291291
// gai_strerror(rv);

0 commit comments

Comments
 (0)