From: Arun Prakash Jana Date: Thu, 18 Oct 2018 17:09:47 +0000 (+0530) Subject: Use custom abs() X-Git-Tag: v2.0~9 X-Git-Url: http://www.git.stargrave.org/?a=commitdiff_plain;h=f8b492803f205f1d85fbfa443167f4541a054381;p=nnn.git Use custom abs() --- diff --git a/nnn.c b/nnn.c index e23601cc..f30777e0 100644 --- a/nnn.c +++ b/nnn.c @@ -3477,8 +3477,10 @@ main(int argc, char *argv[]) /* Get screensaver wait time, if set; copier used as tmp var */ copier = getenv("NNN_IDLE_TIMEOUT"); - if (copier) - idletimeout = abs(atoi(copier)); + if (copier) { + opt = atoi(copier); + idletimeout = opt * ((opt > 0) - (opt < 0)); + } /* Get the default copier, if set */ copier = getenv("NNN_COPIER");