summary refs log tree commit diff stats
path: root/lib/posix
diff options
context:
space:
mode:
authorflywind <xzsflywind@gmail.com>2022-04-13 17:53:02 +0800
committerGitHub <noreply@github.com>2022-04-13 11:53:02 +0200
commit98cebad7debddfb147ee22bc6f3d81221582c4d6 (patch)
tree621a6f1c79778f155cbd803aac1f7468e8f0cd13 /lib/posix
parent26bcf18f918b2bcc7b6b2e230ae74d7726dca6d0 (diff)
downloadNim-98cebad7debddfb147ee22bc6f3d81221582c4d6.tar.gz
enable style:usages for stdlib tests [backport: 1.6] (#19715)
* enable style:usages for stdlib tests

* freeAddrInfo

* more tests

* importc

* bufSize

* fix more

* => parseSql and renderSql
Diffstat (limited to 'lib/posix')
-rw-r--r--lib/posix/posix.nim2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/posix/posix.nim b/lib/posix/posix.nim
index 9c65d0732..146ba886f 100644
--- a/lib/posix/posix.nim
+++ b/lib/posix/posix.nim
@@ -1016,7 +1016,7 @@ proc endhostent*() {.importc, header: "<netdb.h>".}
 proc endnetent*() {.importc, header: "<netdb.h>".}
 proc endprotoent*() {.importc, header: "<netdb.h>".}
 proc endservent*() {.importc, header: "<netdb.h>".}
-proc freeaddrinfo*(a1: ptr AddrInfo) {.importc, header: "<netdb.h>".}
+proc freeAddrInfo*(a1: ptr AddrInfo) {.importc: "freeaddrinfo", header: "<netdb.h>".}
 
 proc gai_strerror*(a1: cint): cstring {.importc:"(char *)$1", header: "<netdb.h>".}