mirror of
https://github.com/NLnetLabs/unbound.git
synced 2026-09-29 05:04:57 +02:00
lint fixes on FreeBSD 7.
git-svn-id: file:///svn/unbound/trunk@1888 be551aaa-1e26-0410-a405-d3ace91eadb9
This commit is contained in:
+1
-1
@@ -991,7 +991,7 @@ 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 = delay_msec / 1000;
|
||||
delay.tv_sec = (time_t)(delay_msec / 1000);
|
||||
delay.tv_usec = (delay_msec % 1000)*1000;
|
||||
reuse = delay; /* reuse is max(4*delay, 1 second) */
|
||||
dl_tv_add(&reuse, &delay);
|
||||
|
||||
@@ -469,7 +469,7 @@ 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 = (int)sec;
|
||||
tv.tv_sec = (time_t)sec;
|
||||
tv.tv_usec = (int)((sec - (double)tv.tv_sec) *1000000. + 0.5);
|
||||
}
|
||||
timeval_add(&runtime->now_tv, &tv);
|
||||
|
||||
Reference in New Issue
Block a user