1
1
mirror of https://github.com/jarun/nnn.git synced 2024-10-05 17:17:57 +03:00

Fix LGTM alerts

This commit is contained in:
Arun Prakash Jana 2021-04-25 15:05:06 +05:30
parent 1241a4d75d
commit 1fde10b022
No known key found for this signature in database
GPG Key ID: A75979F35C080412
2 changed files with 4 additions and 3 deletions

View File

@ -21,7 +21,7 @@
# #############################################################################
import sys
from subprocess import Popen, PIPE, DEVNULL
from subprocess import Popen, PIPE
if len(sys.argv) < 3:
print('usage: natool [-a] [-l] [-x] [archive] [file/dir]')

View File

@ -3603,10 +3603,11 @@ static void print_icon(const struct entry *ent, const int attrs)
static void print_time(const time_t *timep)
{
struct tm *t = localtime(timep);
struct tm t;
localtime_r(timep, &t);
printw("%s-%02d-%02d %02d:%02d",
xitoa(t->tm_year + 1900), t->tm_mon + 1, t->tm_mday, t->tm_hour, t->tm_min);
xitoa(t.tm_year + 1900), t.tm_mon + 1, t.tm_mday, t.tm_hour, t.tm_min);
}
static char get_detail_ind(const mode_t mode)