Explorar el Código

Use custom abs()

master
Arun Prakash Jana hace 6 años
padre
commit
f8b492803f
No se encontró ninguna clave conocida en la base de datos para esta firma ID de clave GPG: A75979F35C080412
Se han modificado 1 ficheros con 4 adiciones y 2 borrados
  1. +4
    -2
      nnn.c

+ 4
- 2
nnn.c Ver fichero

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


Cargando…
Cancelar
Guardar