diff options
Diffstat (limited to 'ui-refs.c')
-rw-r--r-- | ui-refs.c | 14 |
1 files changed, 3 insertions, 11 deletions
@@ -11,18 +11,10 @@ | |||
11 | #include "html.h" | 11 | #include "html.h" |
12 | #include "ui-shared.h" | 12 | #include "ui-shared.h" |
13 | 13 | ||
14 | static int cmp_age(int age1, int age2) | 14 | static inline int cmp_age(int age1, int age2) |
15 | { | 15 | { |
16 | if (age1 != 0 && age2 != 0) | 16 | /* age1 and age2 are assumed to be non-negative */ |
17 | return age2 - age1; | 17 | return age2 - age1; |
18 | |||
19 | if (age1 == 0 && age2 == 0) | ||
20 | return 0; | ||
21 | |||
22 | if (age1 == 0) | ||
23 | return +1; | ||
24 | |||
25 | return -1; | ||
26 | } | 18 | } |
27 | 19 | ||
28 | static int cmp_ref_name(const void *a, const void *b) | 20 | static int cmp_ref_name(const void *a, const void *b) |