diff options
author | Andreas Rumpf <rumpf_a@web.de> | 2016-01-19 10:11:23 +0100 |
---|---|---|
committer | Andreas Rumpf <rumpf_a@web.de> | 2016-01-19 10:11:23 +0100 |
commit | 0dee918de977d4773629108a2a4c0e06ca3b0b3a (patch) | |
tree | 0e3ded808f498898c74014d66299b5a3a33d61d9 /lib | |
parent | b0429258057f7107f23ace81329164dd4009179f (diff) | |
parent | 063448668934e49fba7d772bb0d5ffdaf702d049 (diff) | |
download | Nim-0dee918de977d4773629108a2a4c0e06ca3b0b3a.tar.gz |
Merge pull request #3735 from oderwat/FixDeprecationWarnings
Fixed deprecation warnings while Nim compiles.
Diffstat (limited to 'lib')
-rw-r--r-- | lib/impure/rdstdin.nim | 2 | ||||
-rw-r--r-- | lib/pure/nativesockets.nim | 2 | ||||
-rw-r--r-- | lib/pure/net.nim | 2 | ||||
-rw-r--r-- | lib/pure/securehash.nim | 3 |
4 files changed, 4 insertions, 5 deletions
diff --git a/lib/impure/rdstdin.nim b/lib/impure/rdstdin.nim index b373859f4..15137b436 100644 --- a/lib/impure/rdstdin.nim +++ b/lib/impure/rdstdin.nim @@ -100,7 +100,7 @@ when defined(Windows): stdout.write "\n" else: - import linenoise, termios, unsigned + import linenoise, termios proc readLineFromStdin*(prompt: string): TaintedString {. tags: [ReadIOEffect, WriteIOEffect].} = diff --git a/lib/pure/nativesockets.nim b/lib/pure/nativesockets.nim index b5a8d5777..3951b46a3 100644 --- a/lib/pure/nativesockets.nim +++ b/lib/pure/nativesockets.nim @@ -12,7 +12,7 @@ # TODO: Clean up the exports a bit and everything else in general. -import unsigned, os +import os when hostOS == "solaris": {.passl: "-lsocket -lnsl".} diff --git a/lib/pure/net.nim b/lib/pure/net.nim index d1016011e..1cfaf029f 100644 --- a/lib/pure/net.nim +++ b/lib/pure/net.nim @@ -10,7 +10,7 @@ ## This module implements a high-level cross-platform sockets interface. {.deadCodeElim: on.} -import nativesockets, os, strutils, unsigned, parseutils, times +import nativesockets, os, strutils, parseutils, times export Port, `$`, `==` const useWinVersion = defined(Windows) or defined(nimdoc) diff --git a/lib/pure/securehash.nim b/lib/pure/securehash.nim index 8ac6acb0e..657782889 100644 --- a/lib/pure/securehash.nim +++ b/lib/pure/securehash.nim @@ -7,8 +7,7 @@ # distribution, for details about the copyright. # -import - strutils, unsigned +import strutils const Sha1DigestSize = 20 |