aboutsummaryrefslogtreecommitdiff
path: root/src/utils.nim
diff options
context:
space:
mode:
authorzqqw2020-07-19 14:44:34 +0000
committerzqqw2020-07-19 14:44:34 +0000
commitb2321b0ded6f4a9803daf9dbcbd88d56321a9305 (patch)
tree3a2768d9da3cc4349628974c5dd8cd3316656789 /src/utils.nim
parentd2030e0bf79d8a2252ae4750dbb0086bd06b72cb (diff)
Fix map error & some warnings
Diffstat (limited to 'src/utils.nim')
-rw-r--r--src/utils.nim6
1 files changed, 3 insertions, 3 deletions
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: "<grp.h>".}
-proc setgroups*(size: csize, groups: ptr cint): cint
+proc setgroups*(size: int, groups: ptr cint): cint
{.importc, header: "<grp.h>".}
proc getUser(uid: int): User =