aboutsummaryrefslogtreecommitdiff
path: root/util/ub_event_pluggable.c
diff options
context:
space:
mode:
Diffstat (limited to 'util/ub_event_pluggable.c')
-rw-r--r--util/ub_event_pluggable.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/util/ub_event_pluggable.c b/util/ub_event_pluggable.c
index 4a9451263b7c..235bba6ba797 100644
--- a/util/ub_event_pluggable.c
+++ b/util/ub_event_pluggable.c
@@ -453,7 +453,7 @@ ub_get_event_sys(struct ub_event_base* ub_base, const char** n, const char** s,
* ub_base is guaranteed to exist and to be the default
* event base.
*/
- assert(b);
+ assert(b != NULL);
*n = "pluggable-event";
*s = event_get_version();
# if defined(HAVE_EV_LOOP) || defined(HAVE_EV_DEFAULT_LOOP)
@@ -687,6 +687,8 @@ void ub_comm_base_now(struct comm_base* cb)
if(gettimeofday(tv, NULL) < 0) {
log_err("gettimeofday: %s", strerror(errno));
}
+#ifndef S_SPLINT_S
*tt = tv->tv_sec;
+#endif
}