~mdw
/
sgt
/
putty
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
SSH CRC attack detector now uses a dynamically allocated context.
[sgt/putty]
/
misc.h
diff --git
a/misc.h
b/misc.h
index
a59317e
..
4805474
100644
(file)
--- a/
misc.h
+++ b/
misc.h
@@
-54,10
+54,15
@@
void debug_memdump(void *buf, int len, int L);
#define dmemdumpl(buf,len)
#endif
#define dmemdumpl(buf,len)
#endif
-
#ifndef lenof
#define lenof(x) ( (sizeof((x))) / (sizeof(*(x))))
#endif
#ifndef lenof
#define lenof(x) ( (sizeof((x))) / (sizeof(*(x))))
#endif
+#ifndef min
+#define min(x,y) ( (x) < (y) ? (x) : (y) )
+#endif
+#ifndef max
+#define max(x,y) ( (x) > (y) ? (x) : (y) )
+#endif
#endif
#endif