Revert two deprecation changes
This commit is contained in:
parent
c50b5b62ef
commit
ce69f1e037
2 changed files with 1 additions and 3 deletions
|
|
@ -702,7 +702,7 @@ proc getHostByAddr*(ip: string): Hostent {.tags: [ReadIOEffect].} =
|
||||||
var s = posix.gethostbyaddr(addr(myaddr), sizeof(myaddr).Socklen,
|
var s = posix.gethostbyaddr(addr(myaddr), sizeof(myaddr).Socklen,
|
||||||
cint(posix.AF_INET))
|
cint(posix.AF_INET))
|
||||||
if s == nil:
|
if s == nil:
|
||||||
raise newException(OSError, $hstrerror(h_errno))
|
raiseOSError(osLastError(), $hstrerror(h_errno))
|
||||||
|
|
||||||
result.name = $s.h_name
|
result.name = $s.h_name
|
||||||
result.aliases = cstringArrayToSeq(s.h_aliases)
|
result.aliases = cstringArrayToSeq(s.h_aliases)
|
||||||
|
|
|
||||||
|
|
@ -25,8 +25,6 @@
|
||||||
## .. include:: ../doc/regexprs.txt
|
## .. include:: ../doc/regexprs.txt
|
||||||
##
|
##
|
||||||
|
|
||||||
{.deprecated.}
|
|
||||||
|
|
||||||
import
|
import
|
||||||
pcre, strutils, rtarrays
|
pcre, strutils, rtarrays
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue