From b2321b0ded6f4a9803daf9dbcbd88d56321a9305 Mon Sep 17 00:00:00 2001 From: zqqw Date: Sun, 19 Jul 2020 15:44:34 +0100 Subject: Fix map error & some warnings --- src/utils.nim | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/utils.nim') diff --git a/src/utils.nim b/src/utils.nim index c329b68..25d1b83 100644 --- a/src/utils.nim +++ b/src/utils.nim @@ -2,10 +2,10 @@ import hashes, options, os, posix, sequtils, strutils, sugar, tables type - HaltError* = object of Exception + HaltError* = object of CatchableError code*: int - CommandError* = object of Exception + CommandError* = object of CatchableError color*: Option[bool] error*: bool @@ -211,7 +211,7 @@ proc forkWaitRedirect*(call: () -> int): tuple[output: seq[string], code: int] = proc getgrouplist*(user: cstring, group: Gid, groups: ptr cint, ngroups: var cint): cint {.importc, header: "".} -proc setgroups*(size: csize, groups: ptr cint): cint +proc setgroups*(size: int, groups: ptr cint): cint {.importc, header: "".} proc getUser(uid: int): User = -- cgit v1.2.3-70-g09d2