Revert two deprecation changes

This commit is contained in:
def 2016-01-26 13:34:08 +01:00
commit ce69f1e037
2 changed files with 1 additions and 3 deletions

View file

@ -702,7 +702,7 @@ proc getHostByAddr*(ip: string): Hostent {.tags: [ReadIOEffect].} =
var s = posix.gethostbyaddr(addr(myaddr), sizeof(myaddr).Socklen,
cint(posix.AF_INET))
if s == nil:
raise newException(OSError, $hstrerror(h_errno))
raiseOSError(osLastError(), $hstrerror(h_errno))
result.name = $s.h_name
result.aliases = cstringArrayToSeq(s.h_aliases)

View file

@ -25,8 +25,6 @@
## .. include:: ../doc/regexprs.txt
##
{.deprecated.}
import
pcre, strutils, rtarrays