diff options
author | Hans Raaf <hara@oderwat.de> | 2016-01-18 18:12:07 +0100 |
---|---|---|
committer | Hans Raaf <hara@oderwat.de> | 2016-01-18 18:14:50 +0100 |
commit | 063448668934e49fba7d772bb0d5ffdaf702d049 (patch) | |
tree | 16a5f94ee51aa6abf7ad98a67be43778c4a1cc6c /lib | |
parent | 13c98222df26925938bdb8bb55d9af900cc5a228 (diff) | |
download | Nim-063448668934e49fba7d772bb0d5ffdaf702d049.tar.gz |
Fixed deprecation warnings while Nim compiles.
I just removed unsigned and changed a writeLn() call to writeLine() to avoid the remaining deprecation warnings.
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 |