static settings cfg = {0, 0, 0, 0, 0, 1, 1, 0};
/* Idle timeout in seconds, 0 to disable */
-static int idletimeout;
+static uint idletimeout;
static struct entry *dents;
static int ndents, cur, total_dents;
-static int idle;
+static uint idle;
static char *player;
static char *copier;
static char *editor;
static uint open_max;
static bm bookmark[MAX_BM];
static const double div_2_pow_10 = 1.0 / 1024.0;
-static uint _WSHIFT;
+static uint _WSHIFT = (sizeof(ulong) == 8) ? 3 : 2;
/* Utilities to open files, run actions */
static char * const utils[] = {
Version: %s\n\
License: BSD 2-Clause\n\
Webpage: https://github.com/jarun/nnn\n", VERSION);
-
exit(0);
}
}
}
- /* Set the word shift */
- _WSHIFT = sizeof(ulong);
- if (_WSHIFT == 8)
- _WSHIFT = 3;
- else
- _WSHIFT = 2;
-
/* Increase current open file descriptor limit */
open_max = max_openfds();