summaryrefslogtreecommitdiffstats
path: root/src/db/sysdb_sudo.c
diff options
context:
space:
mode:
authorSumit Bose <sbose@redhat.com>2012-12-19 10:17:27 +0100
committerJakub Hrozek <jhrozek@redhat.com>2012-12-19 18:42:58 +0100
commit80941dd89fd8bc7c4a1272c304f737ce0fd5fc54 (patch)
tree3eaec4dabbc94f6bc3022681897c3b8b30b59187 /src/db/sysdb_sudo.c
parent1f15b746e77f54ad82e1cb5c74f29d327b851c5a (diff)
downloadsssd-80941dd89fd8bc7c4a1272c304f737ce0fd5fc54.tar.gz
sssd-80941dd89fd8bc7c4a1272c304f737ce0fd5fc54.tar.xz
sssd-80941dd89fd8bc7c4a1272c304f737ce0fd5fc54.zip
Fix a 'shadows a global declaration' warning
Diffstat (limited to 'src/db/sysdb_sudo.c')
-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;
}
}