Renamed local variable to avoid compiler warning.
This commit is contained in:
parent
91d152c0f5
commit
9920de0147
1 changed files with 3 additions and 3 deletions
|
|
@ -833,9 +833,9 @@ type inet_ntop_proc = proc(family: cint, paddr: pointer, pStringBuffer: cstring,
|
||||||
|
|
||||||
var inet_ntop_real: inet_ntop_proc = nil
|
var inet_ntop_real: inet_ntop_proc = nil
|
||||||
|
|
||||||
let l = loadLib(ws2dll)
|
let ws2 = loadLib(ws2dll)
|
||||||
if l != nil:
|
if ws2 != nil:
|
||||||
inet_ntop_real = cast[inet_ntop_proc](symAddr(l, "inet_ntop"))
|
inet_ntop_real = cast[inet_ntop_proc](symAddr(ws2, "inet_ntop"))
|
||||||
|
|
||||||
proc WSAAddressToStringA(pAddr: ptr SockAddr, addrSize: DWORD, unused: pointer, pBuff: cstring, pBuffSize: ptr DWORD): cint {.stdcall, importc, dynlib: ws2dll.}
|
proc WSAAddressToStringA(pAddr: ptr SockAddr, addrSize: DWORD, unused: pointer, pBuff: cstring, pBuffSize: ptr DWORD): cint {.stdcall, importc, dynlib: ws2dll.}
|
||||||
proc inet_ntop_emulated(family: cint, paddr: pointer, pStringBuffer: cstring,
|
proc inet_ntop_emulated(family: cint, paddr: pointer, pStringBuffer: cstring,
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue