mirror of
https://github.com/slsdetectorgroup/slsDetectorPackage.git
synced 2026-11-30 09:47:46 +01:00
m3 fix to get kernel version properly on nios without an incorrect error msg (#898)
This commit is contained in:
1 parent
5e9fd43d49
commit
a884db0e2c
2 files changed
+3
-2
No files matched your search
Binary file not shown.
@@ -114,10 +114,11 @@ int getTimeFromString(char *buf, time_t *result) {
|
||||
t.tm_mday, t.tm_mon, t.tm_year + 1900, t.tm_hour, t.tm_min, t.tm_sec));
|
||||
|
||||
*result = mktime(&t);
|
||||
if (*result == -1) {
|
||||
/* Do not check as it fails with nios
|
||||
if (*result == (time_t)-1) {
|
||||
LOG(logERROR, ("Could not convert time structure to time_t\n"));
|
||||
return FAIL;
|
||||
}
|
||||
}*/
|
||||
return OK;
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user