2
0
mirror of https://gitlab.isc.org/isc-projects/bind9 synced 2025-08-30 14:07:59 +00:00

REQUIRE isc_condition_waituntil args all non-NULL

This commit is contained in:
David Lawrence
2000-01-11 02:58:46 +00:00
parent b6f101e314
commit c5f15d214f

View File

@@ -20,6 +20,7 @@
#include <errno.h> #include <errno.h>
#include <string.h> #include <string.h>
#include <isc/assertions.h>
#include <isc/condition.h> #include <isc/condition.h>
#include <isc/error.h> #include <isc/error.h>
@@ -29,6 +30,8 @@ isc_condition_waituntil(isc_condition_t *c, isc_mutex_t *m, isc_time_t *t)
int presult; int presult;
struct timespec ts; struct timespec ts;
REQUIRE(c != NULL && m != NULL && t != NULL);
ts.tv_sec = t->seconds; ts.tv_sec = t->seconds;
ts.tv_nsec = t->nanoseconds; ts.tv_nsec = t->nanoseconds;
do { do {