diff options
author | bptato <nincsnevem662@gmail.com> | 2024-12-17 17:07:46 +0100 |
---|---|---|
committer | bptato <nincsnevem662@gmail.com> | 2024-12-17 17:07:46 +0100 |
commit | f2eae49c8b9eb877c437f802590677b26f631f42 (patch) | |
tree | 72236e7b50dcf278a7d6bcaf9f48df0ed4e68f95 /adapter/protocol/man.nim | |
parent | 48a69e1b774092c8b55cbbd5281b6d61d1cd2556 (diff) | |
download | chawan-f2eae49c8b9eb877c437f802590677b26f631f42.tar.gz |
default(T) -> T.default, add some strict defs
Diffstat (limited to 'adapter/protocol/man.nim')
-rw-r--r-- | adapter/protocol/man.nim | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/adapter/protocol/man.nim b/adapter/protocol/man.nim index 1b0724ad..265862bb 100644 --- a/adapter/protocol/man.nim +++ b/adapter/protocol/man.nim @@ -236,8 +236,8 @@ proc processManpage(ofile, efile: File; header, keyword: string) = efile.close() proc myOpen(cmd: string): tuple[ofile, efile: File] = - var opipe = default(array[2, cint]) - var epipe = default(array[2, cint]) + var opipe = array[2, cint].default + var epipe = array[2, cint].default if pipe(opipe) == -1 or pipe(epipe) == -1: return (nil, nil) case fork() |