diff options
author | 2025-07-01 01:06:50 +0200 | |
---|---|---|
committer | 2025-07-01 01:06:50 +0200 | |
commit | 460d8f14a1a343351a212ba96e16157cdc88d069 (patch) | |
tree | cf5bdd5ddb226a474508f9a916466af5e469b5be /src/log.c | |
parent | c752e8780b043c8822be2417cc5596b8f2ad9c0b (diff) | |
download | idevicerestore-460d8f14a1a343351a212ba96e16157cdc88d069.tar.gz idevicerestore-460d8f14a1a343351a212ba96e16157cdc88d069.tar.bz2 |
Fix a couple of compiler warnings and remove unused variables
Diffstat (limited to 'src/log.c')
-rw-r--r-- | src/log.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -115,11 +115,11 @@ void logger(enum loglevel level, const char *fmt, ...) snprintf(fs, 24, "%02d:%02d:%02d.%03d", lt.wHour, lt.wMinute, lt.wSecond, lt.wMilliseconds); #else struct timeval ts; - struct tm tp_; struct tm *tp; gettimeofday(&ts, NULL); #ifdef HAVE_LOCALTIME_R + struct tm tp_; tp = localtime_r(&ts.tv_sec, &tp_); #else tp = localtime(&ts.tv_sec); |