projects
/
u
/
mdw
/
putty
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Hiroshi Oota points out that PuTTY's agent forwarding sockets can get
[u/mdw/putty]
/
timing.c
diff --git
a/timing.c
b/timing.c
index
841d973
..
ffea4e1
100644
(file)
--- a/
timing.c
+++ b/
timing.c
@@
-60,14
+60,12
@@
static int compare_timers(void *av, void *bv)
* Failing that, compare on the other two fields, just so that
* we don't get unwanted equality.
*/
* Failing that, compare on the other two fields, just so that
* we don't get unwanted equality.
*/
-#if
def __LCC__
+#if
defined(__LCC__) || defined(__clang__)
/* lcc won't let us compare function pointers. Legal, but annoying. */
{
int c = memcmp(&a->fn, &b->fn, sizeof(a->fn));
/* lcc won't let us compare function pointers. Legal, but annoying. */
{
int c = memcmp(&a->fn, &b->fn, sizeof(a->fn));
- if (c < 0)
- return -1;
- else if (c > 0)
- return +1;
+ if (c)
+ return c;
}
#else
if (a->fn < b->fn)
}
#else
if (a->fn < b->fn)