summary refs log tree commit diff stats
path: root/lib/posix/posix_nintendoswitch.nim
diff options
context:
space:
mode:
authorAraq <rumpf_a@web.de>2019-07-15 13:16:02 +0200
committerAraq <rumpf_a@web.de>2019-07-15 13:16:02 +0200
commitdd7dd1b6dc775ab106fec3c4224f89d41a5ad176 (patch)
tree16d0cc1f06d8012f1d55a4b4eed2ec86bc6b03bb /lib/posix/posix_nintendoswitch.nim
parentad67a46e5ddcf260281b13b79bf50afa779b234d (diff)
downloadNim-dd7dd1b6dc775ab106fec3c4224f89d41a5ad176.tar.gz
styleCheck fixes [bugfix]
Diffstat (limited to 'lib/posix/posix_nintendoswitch.nim')
-rw-r--r--lib/posix/posix_nintendoswitch.nim6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/posix/posix_nintendoswitch.nim b/lib/posix/posix_nintendoswitch.nim
index ae0f2dcdf..887d16586 100644
--- a/lib/posix/posix_nintendoswitch.nim
+++ b/lib/posix/posix_nintendoswitch.nim
@@ -341,7 +341,7 @@ type
 const Sockaddr_un_path_length* = 108
 
 type
-  Socklen* {.importc: "socklen_t", header: "<sys/socket.h>".} = cuint
+  SockLen* {.importc: "socklen_t", header: "<sys/socket.h>".} = cuint
   # cushort really
   TSa_Family* {.importc: "sa_family_t", header: "<sys/socket.h>".} = cshort
 
@@ -376,7 +376,7 @@ type
   Tmsghdr* {.importc: "struct msghdr", pure, final,
              header: "<sys/socket.h>".} = object  ## struct msghdr
     msg_name*: pointer  ## Optional address.
-    msg_namelen*: Socklen  ## Size of address.
+    msg_namelen*: SockLen  ## Size of address.
     msg_iov*: ptr IOVec    ## Scatter/gather array.
     msg_iovlen*: csize   ## Members in msg_iov.
     msg_control*: pointer  ## Ancillary data; see below.
@@ -473,7 +473,7 @@ type
     ai_family*: cint        ## Address family of socket.
     ai_socktype*: cint      ## Socket type.
     ai_protocol*: cint      ## Protocol of socket.
-    ai_addrlen*: Socklen   ## Length of socket address.
+    ai_addrlen*: SockLen   ## Length of socket address.
     ai_canonname*: cstring  ## Canonical name of service location.
     ai_addr*: ptr SockAddr ## Socket address of socket.
     ai_next*: ptr AddrInfo ## Pointer to next in list.