mirror of
https://github.com/NLnetLabs/unbound.git
synced 2026-09-23 10:14:59 +02:00
please lint on FreeBSD6
git-svn-id: file:///svn/unbound/trunk@1889 be551aaa-1e26-0410-a405-d3ace91eadb9
This commit is contained in:
+3
-1
@@ -991,8 +991,10 @@ service(const char* bind_str, int bindport, const char* serv_str,
|
||||
struct timeval delay, reuse;
|
||||
ldns_buffer* pkt;
|
||||
int i, s, listen_s;
|
||||
delay.tv_sec = (time_t)(delay_msec / 1000);
|
||||
#ifndef S_SPLINT_S
|
||||
delay.tv_sec = delay_msec / 1000;
|
||||
delay.tv_usec = (delay_msec % 1000)*1000;
|
||||
#endif
|
||||
reuse = delay; /* reuse is max(4*delay, 1 second) */
|
||||
dl_tv_add(&reuse, &delay);
|
||||
dl_tv_add(&reuse, &delay);
|
||||
|
||||
@@ -469,8 +469,10 @@ time_passes(struct replay_runtime* runtime, struct replay_moment* mom)
|
||||
verbose(VERB_ALGO, "EVAL %s", mom->string);
|
||||
sec = atof(xp);
|
||||
free(xp);
|
||||
tv.tv_sec = (time_t)sec;
|
||||
#ifndef S_SPLINT_S
|
||||
tv.tv_sec = sec;
|
||||
tv.tv_usec = (int)((sec - (double)tv.tv_sec) *1000000. + 0.5);
|
||||
#endif
|
||||
}
|
||||
timeval_add(&runtime->now_tv, &tv);
|
||||
runtime->now_secs = (uint32_t)runtime->now_tv.tv_sec;
|
||||
|
||||
Reference in New Issue
Block a user