mirror of
https://github.com/jarun/nnn.git
synced 2024-12-01 02:49:44 +00:00
Fix order
This commit is contained in:
parent
7d36f54d75
commit
4c8c916ca3
|
@ -3997,6 +3997,7 @@ int main(int argc, char *argv[])
|
||||||
char cwd[PATH_MAX] __attribute__ ((aligned));
|
char cwd[PATH_MAX] __attribute__ ((aligned));
|
||||||
char *ipath = NULL;
|
char *ipath = NULL;
|
||||||
int opt;
|
int opt;
|
||||||
|
struct sigaction act;
|
||||||
|
|
||||||
while ((opt = getopt(argc, argv, "Slib:enp:svwh")) != -1) {
|
while ((opt = getopt(argc, argv, "Slib:enp:svwh")) != -1) {
|
||||||
switch (opt) {
|
switch (opt) {
|
||||||
|
@ -4199,8 +4200,6 @@ int main(int argc, char *argv[])
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/* Ignore/handle certain signals */
|
/* Ignore/handle certain signals */
|
||||||
struct sigaction act;
|
|
||||||
|
|
||||||
memset(&act, 0, sizeof(act));
|
memset(&act, 0, sizeof(act));
|
||||||
act.sa_sigaction = &sigint_handler;
|
act.sa_sigaction = &sigint_handler;
|
||||||
act.sa_flags = SA_SIGINFO;
|
act.sa_flags = SA_SIGINFO;
|
||||||
|
|
Loading…
Reference in a new issue