aboutsummaryrefslogtreecommitdiff
path: root/timer.c
diff options
context:
space:
mode:
authorJeremie Corbier <jeremie.corbier@resel.enst-bretagne.fr>2010-03-25 10:07:03 +0100
committerBjørn Mork <bjorn@mork.no>2010-08-06 15:37:37 +0200
commitaeedae61d12778c4428a7e266913221269480162 (patch)
tree023ce3b78a8d62a129032fc6028d457f5e9199c1 /timer.c
parent2fa86d0c611b69e175c3b07116e9b67b85fe20ef (diff)
102_libc6-2.9-fixes.diff from the Debian package version 20080615-8:
"Fixes for recent libc releases." [ignoring changes to the build generated cftoken.c file] Signed-off-by: Bjørn Mork <bjorn@mork.no>
Diffstat (limited to 'timer.c')
-rw-r--r--timer.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/timer.c b/timer.c
index c74aa1f..c1666b4 100644
--- a/timer.c
+++ b/timer.c
@@ -71,14 +71,14 @@ dhcp6_add_timer(timeout, timeodata)
struct dhcp6_timer *newtimer;
if ((newtimer = malloc(sizeof(*newtimer))) == NULL) {
- dprintf(LOG_ERR, FNAME, "can't allocate memory");
+ debug_printf(LOG_ERR, FNAME, "can't allocate memory");
return (NULL);
}
memset(newtimer, 0, sizeof(*newtimer));
if (timeout == NULL) {
- dprintf(LOG_ERR, FNAME, "timeout function unspecified");
+ debug_printf(LOG_ERR, FNAME, "timeout function unspecified");
exit(1);
}
newtimer->expire = timeout;
@@ -165,7 +165,7 @@ dhcp6_timer_rest(timer)
gettimeofday(&now, NULL);
if (TIMEVAL_LEQ(timer->tm, now)) {
- dprintf(LOG_DEBUG, FNAME,
+ debug_printf(LOG_DEBUG, FNAME,
"a timer must be expired, but not yet");
returnval.tv_sec = returnval.tv_usec = 0;
} else