Skip to content

Commit

Permalink
localtime_r requires pointer
Browse files Browse the repository at this point in the history
  • Loading branch information
arr2036 committed Aug 31, 2015
1 parent 636079c commit e6b48aa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/modules/rlm_redis_ippool/rlm_redis_ippool_tool.c
Expand Up @@ -862,7 +862,7 @@ do { \
is_active = now.tv_sec <= leases[i]->next_event;
if (leases[i]->next_event) {
strftime(time_buff, sizeof(time_buff), "%b %e %Y %H:%M:%S %Z",
localtime_r(leases[i]->next_event, &tm));
localtime_r(&(leases[i]->next_event), &tm));
} else {
time_buff[0] = '\0';
}
Expand Down

0 comments on commit e6b48aa

Please sign in to comment.