All of lore.kernel.org
 help / color / mirror / Atom feed
* dmraid/lib internal.h
@ 2009-12-17 14:23 heinzm
  0 siblings, 0 replies; only message in thread
From: heinzm @ 2009-12-17 14:23 UTC (permalink / raw)
  To: dm-cvs, dm-devel

CVSROOT:	/cvs/dm
Module name:	dmraid
Changes by:	heinzm@sourceware.org	2009-12-17 14:23:35

Modified files:
	lib            : internal.h 

Log message:
	make min/max macros safe

Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/dmraid/lib/internal.h.diff?cvsroot=dm&r1=1.4&r2=1.5

--- dmraid/lib/internal.h	2009/09/16 11:45:12	1.4
+++ dmraid/lib/internal.h	2009/12/17 14:23:35	1.5
@@ -50,8 +50,8 @@
 #define	u_int64_t	uint64_t
 #endif
 
-#define min(a, b) (a) < (b) ? (a) : (b)
-#define max(a, b) (a) > (b) ? (a) : (b)
+#define min(a, b) ((a) < (b) ? (a) : (b))
+#define max(a, b) ((a) > (b) ? (a) : (b))
 #define ARRAY_SIZE(a)   (sizeof(a) / sizeof(*a))
 #define ARRAY_END(a)   (a + ARRAY_SIZE(a))
 

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2009-12-17 14:23 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-12-17 14:23 dmraid/lib internal.h heinzm

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.