]> git.ipfire.org Git - thirdparty/bird.git/commitdiff
Fixed one warning and one undefined value.
authorMaria Matejka <mq@ucw.cz>
Fri, 22 Mar 2019 20:40:35 +0000 (21:40 +0100)
committerMaria Matejka <mq@ucw.cz>
Fri, 22 Mar 2019 20:40:35 +0000 (21:40 +0100)
nest/rt-table.c
sysdep/unix/io.c

index 12966ecac6fca00edddfe7facf39c07963ffc186..53f5d979995d3e20d641de05d0efa59c62685ebb 100644 (file)
@@ -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);
index d1d86e3b15cf70c3febc524aa377df7384fe74ca..5b0e49c1f22b74d0127c932ae615049af394d09b 100644 (file)
@@ -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;