Przeglądaj źródła

Use custom abs()

master
Arun Prakash Jana 6 lat temu
rodzic
commit
f8b492803f
Nie znaleziono w bazie danych klucza dla tego podpisu ID klucza GPG: A75979F35C080412
1 zmienionych plików z 4 dodań i 2 usunięć
  1. +4
    -2
      nnn.c

+ 4
- 2
nnn.c Wyświetl plik

@@ -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)
idletimeout = abs(atoi(copier));
if (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");


Ładowanie…
Anuluj
Zapisz