]> granicus.if.org Git - libevent/commitdiff
Remove an unreachable return statement in minheap-internal.h
authorNick Mathewson <nickm@torproject.org>
Thu, 1 Aug 2013 14:40:08 +0000 (10:40 -0400)
committerNick Mathewson <nickm@torproject.org>
Thu, 1 Aug 2013 14:47:48 +0000 (10:47 -0400)
Found by Brian Utterback; see http://bugs.ntp.org/show_bug.cgi?id=2446

minheap-internal.h

index 24f19633f9612e2286227135a5047fbe6a6ea1d9..b3b6f1fd497e52be859e5c158f15b1533e2c5af6 100644 (file)
@@ -128,7 +128,6 @@ int min_heap_adjust_(min_heap_t *s, struct event *e)
                        min_heap_shift_down_(s, e->ev_timeout_pos.min_heap_idx, e);
                return 0;
        }
-       return -1;
 }
 
 int min_heap_reserve_(min_heap_t* s, unsigned n)