From: Maria Matejka Date: Fri, 22 Mar 2019 20:40:35 +0000 (+0100) Subject: Fixed one warning and one undefined value. X-Git-Tag: v2.0.5~10^2~36 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=7078aa63ae498b55c729df4a075eb28019917e81;p=thirdparty%2Fbird.git Fixed one warning and one undefined value. --- diff --git a/nest/rt-table.c b/nest/rt-table.c index 12966ecac..53f5d9799 100644 --- a/nest/rt-table.c +++ b/nest/rt-table.c @@ -1576,7 +1576,7 @@ rte_update2(struct channel *c, const net_addr *n, rte *new, struct rte_src *src) } else if (filter) { - rta *old_attrs; + rta *old_attrs = NULL; rte_make_tmp_attrs(&new, rte_update_pool, &old_attrs); int fr = f_run(filter, &new, rte_update_pool, 0); diff --git a/sysdep/unix/io.c b/sysdep/unix/io.c index d1d86e3b1..5b0e49c1f 100644 --- a/sysdep/unix/io.c +++ b/sysdep/unix/io.c @@ -132,7 +132,7 @@ times_init(struct timeloop *loop) if (rv < 0) die("Monotonic clock is missing"); - if ((ts.tv_sec < 0) || (((s64) ts.tv_sec) > ((s64) 1 << 40))) + if ((ts.tv_sec < 0) || (((u64) ts.tv_sec) > ((u64) 1 << 40))) log(L_WARN "Monotonic clock is crazy"); loop->last_time = ts.tv_sec S + ts.tv_nsec NS;