summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/db/sysdb_sudo.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/db/sysdb_sudo.c b/src/db/sysdb_sudo.c
index 519a3aa72..d50df0bad 100644
--- a/src/db/sysdb_sudo.c
+++ b/src/db/sysdb_sudo.c
@@ -36,7 +36,7 @@
/* ==================== Utility functions ==================== */
-static errno_t sysdb_sudo_convert_time(const char *str, time_t *time)
+static errno_t sysdb_sudo_convert_time(const char *str, time_t *unix_time)
{
struct tm tm;
char *tret = NULL;
@@ -58,7 +58,7 @@ static errno_t sysdb_sudo_convert_time(const char *str, time_t *time)
for (format = formats; *format != NULL; format++) {
tret = strptime(str, *format, &tm);
if (tret != NULL && *tret == '\0') {
- *time = mktime(&tm);
+ *unix_time = mktime(&tm);
return EOK;
}
}