diff options
author | Neelesh Chandola <neelesh.chandola@outlook.com> | 2018-12-13 13:59:46 +0530 |
---|---|---|
committer | Neelesh Chandola <neelesh.chandola@outlook.com> | 2018-12-13 13:59:46 +0530 |
commit | b2411db54119ea00296d12a47bd12a371bc0a4ba (patch) | |
tree | 79d537e3066eb5c9778df62faa3a53445a190892 /lib/deprecated | |
parent | abcf4d8b5dd4988c952a232d4a610d0491ff79ff (diff) | |
parent | a3c4791e9cde49f44e7261044cc84fa863bc717c (diff) | |
download | Nim-b2411db54119ea00296d12a47bd12a371bc0a4ba.tar.gz |
Merge remote-tracking branch 'upstream/devel' into record-case
Diffstat (limited to 'lib/deprecated')
-rw-r--r-- | lib/deprecated/pure/sockets.nim | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/lib/deprecated/pure/sockets.nim b/lib/deprecated/pure/sockets.nim index f78df0b2b..cc1b6039b 100644 --- a/lib/deprecated/pure/sockets.nim +++ b/lib/deprecated/pure/sockets.nim @@ -219,7 +219,6 @@ when defined(Posix): of AF_UNIX: result = posix.AF_UNIX of AF_INET: result = posix.AF_INET of AF_INET6: result = posix.AF_INET6 - else: discard proc toInt(typ: SockType): cint = case typ @@ -227,7 +226,6 @@ when defined(Posix): of SOCK_DGRAM: result = posix.SOCK_DGRAM of SOCK_SEQPACKET: result = posix.SOCK_SEQPACKET of SOCK_RAW: result = posix.SOCK_RAW - else: discard proc toInt(p: Protocol): cint = case p @@ -237,7 +235,6 @@ when defined(Posix): of IPPROTO_IPV6: result = posix.IPPROTO_IPV6 of IPPROTO_RAW: result = posix.IPPROTO_RAW of IPPROTO_ICMP: result = posix.IPPROTO_ICMP - else: discard else: proc toInt(domain: Domain): cint = @@ -853,7 +850,6 @@ proc connect*(socket: Socket, address: string, port = Port(0), of AF_UNIX: s.sin_family = posix.AF_UNIX of AF_INET: s.sin_family = posix.AF_INET of AF_INET6: s.sin_family = posix.AF_INET6 - else: nil if connect(socket.fd, cast[ptr TSockAddr](addr(s)), sizeof(s).cint) < 0'i32: OSError() |