浏览代码

Use custom abs()

master
Arun Prakash Jana 6 年前
父节点
当前提交
f8b492803f
找不到此签名对应的密钥 GPG 密钥 ID: A75979F35C080412
共有 1 个文件被更改,包括 4 次插入2 次删除
  1. +4
    -2
      nnn.c

+ 4
- 2
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");


正在加载...
取消
保存