git://git.exim.org
/
users
/
jgh
/
exim.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Tidying: coverity issues
[users/jgh/exim.git]
/
src
/
src
/
macros.h
diff --git
a/src/src/macros.h
b/src/src/macros.h
index c62f16e7d27251ced9ff8628a8f1bf6004af7e3d..1b7cf4abf64d822a01e65861f4f352384f194e3a 100644
(file)
--- a/
src/src/macros.h
+++ b/
src/src/macros.h
@@
-15,6
+15,11
@@
a string as a text string. This is sometimes useful for debugging output. */
/* Number of elements of an array */
#define nelem(arr) (sizeof(arr) / sizeof(*arr))
+/* Maximum of two items */
+#ifndef MAX
+# define MAX(a,b) ((a) > (b) ? (a) : (b))
+#endif
+
/* When running in the test harness, the load average is fudged. */