projects
/
u
/
mdw
/
putty
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Rename the various ssh2_maybe_setup_* functions to ssh2_setup_*, and
[u/mdw/putty]
/
timing.c
diff --git
a/timing.c
b/timing.c
index
9c2a878
..
ffea4e1
100644
(file)
--- a/
timing.c
+++ b/
timing.c
@@
-62,7
+62,11
@@
static int compare_timers(void *av, void *bv)
*/
#if defined(__LCC__) || defined(__clang__)
/* lcc won't let us compare function pointers. Legal, but annoying. */
*/
#if defined(__LCC__) || defined(__clang__)
/* lcc won't let us compare function pointers. Legal, but annoying. */
- return memcmp(&a->fn, &b->fn, sizeof(a->fn));
+ {
+ int c = memcmp(&a->fn, &b->fn, sizeof(a->fn));
+ if (c)
+ return c;
+ }
#else
if (a->fn < b->fn)
return -1;
#else
if (a->fn < b->fn)
return -1;