ソースを参照

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");


読み込み中…
キャンセル
保存