fix deprecations and other warnings (#13748)

This commit is contained in:
Miran 2020-03-25 19:15:34 +01:00 • committed by GitHub
commit 5b55aa52d0
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
22 changed files with 63 additions and 66 deletions

View file

@ -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