mirror of
https://github.com/jarun/nnn.git
synced 2025-03-18 20:39:45 +00:00
Use custom abs()
This commit is contained in:
parent
5a3a27933c
commit
f8b492803f
1 changed files with 4 additions and 2 deletions
6
nnn.c
6
nnn.c
|
@ -3477,8 +3477,10 @@ main(int argc, char *argv[])
|
||||||
|
|
||||||
/* Get screensaver wait time, if set; copier used as tmp var */
|
/* Get screensaver wait time, if set; copier used as tmp var */
|
||||||
copier = getenv("NNN_IDLE_TIMEOUT");
|
copier = getenv("NNN_IDLE_TIMEOUT");
|
||||||
if (copier)
|
if (copier) {
|
||||||
idletimeout = abs(atoi(copier));
|
opt = atoi(copier);
|
||||||
|
idletimeout = opt * ((opt > 0) - (opt < 0));
|
||||||
|
}
|
||||||
|
|
||||||
/* Get the default copier, if set */
|
/* Get the default copier, if set */
|
||||||
copier = getenv("NNN_COPIER");
|
copier = getenv("NNN_COPIER");
|
||||||
|
|
Loading…
Add table
Reference in a new issue