summary refs log tree commit diff stats
path: root/lib/deprecated/pure/sockets.nim
diff options
context:
space:
mode:
Diffstat (limited to 'lib/deprecated/pure/sockets.nim')
-rw-r--r--lib/deprecated/pure/sockets.nim2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/deprecated/pure/sockets.nim b/lib/deprecated/pure/sockets.nim
index 34c2e7a7d..415078126 100644
--- a/lib/deprecated/pure/sockets.nim
+++ b/lib/deprecated/pure/sockets.nim
@@ -219,7 +219,7 @@ template htons(x: uint16): expr =
   sockets.ntohs(x)
 
 when defined(Posix):
-  proc toInt(domain: Domain): cint =
+  proc toInt(domain: Domain): TSa_Family =
     case domain
     of AF_UNIX:        result = posix.AF_UNIX
     of AF_INET:        result = posix.AF_INET