diff options
author | Bruce Doan <rgv151@gmail.com> | 2015-09-16 17:29:14 +0700 |
---|---|---|
committer | Bruce Doan <rgv151@gmail.com> | 2015-09-16 17:39:14 +0700 |
commit | 2ffb38561190381ae166684b3727d32c2d908ca0 (patch) | |
tree | a52fb2cdb678be56b31e58880fc1653e9d219627 /lib/posix | |
parent | c9a2fa54c7055c16892e9664dd64d8fc68918c07 (diff) | |
download | Nim-2ffb38561190381ae166684b3727d32c2d908ca0.tar.gz |
wait's input is nullable, and it is discardable
Diffstat (limited to 'lib/posix')
-rw-r--r-- | lib/posix/posix.nim | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/posix/posix.nim b/lib/posix/posix.nim index d264dc02a..8486fa04f 100644 --- a/lib/posix/posix.nim +++ b/lib/posix/posix.nim @@ -2316,7 +2316,7 @@ proc timer_settime*(a1: Timer, a2: cint, a3: var Itimerspec, proc tzset*() {.importc, header: "<time.h>".} -proc wait*(a1: var cint): Pid {.importc, header: "<sys/wait.h>".} +proc wait*(a1: ptr cint): Pid {.importc, discardable, header: "<sys/wait.h>".} proc waitid*(a1: cint, a2: Id, a3: var SigInfo, a4: cint): cint {. importc, header: "<sys/wait.h>".} proc waitpid*(a1: Pid, a2: var cint, a3: cint): Pid {. |