fix deprecations and other warnings (#13748)
This commit is contained in:
parent
182d3c16e3
commit
5b55aa52d0
22 changed files with 63 additions and 66 deletions
|
|
@ -13,7 +13,7 @@ template processTest(t, x: untyped) =
|
|||
when defined(macosx):
|
||||
echo "All tests passed!"
|
||||
elif not defined(windows):
|
||||
import os, posix, nativesockets, times
|
||||
import os, posix, nativesockets
|
||||
|
||||
when ioselSupportedPlatform:
|
||||
import osproc
|
||||
|
|
@ -445,7 +445,7 @@ elif not defined(windows):
|
|||
var
|
||||
thr: array[0..7, Thread[SelectEvent]]
|
||||
var selector = newSelector[int]()
|
||||
var sock = newNativeSocket()
|
||||
var sock = createNativeSocket()
|
||||
var event = newSelectEvent()
|
||||
for i in 0..high(thr):
|
||||
createThread(thr[i], event_wait_thread, event)
|
||||
|
|
@ -475,7 +475,7 @@ else:
|
|||
|
||||
proc socket_notification_test(): bool =
|
||||
proc create_test_socket(): SocketHandle =
|
||||
var sock = newNativeSocket()
|
||||
var sock = createNativeSocket()
|
||||
setBlocking(sock, false)
|
||||
result = sock
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue