[DRBD-cvs] drbd by phil; Addes some missing braces in the ALIGN m...
drbd-user@lists.linbit.com
drbd-user@lists.linbit.com
Thu, 1 Jul 2004 10:57:24 +0200 (CEST)
DRBD CVS committal
Author : phil
Module : drbd
Dir : drbd/drbd
Modified Files:
Tag: rel-0_7-branch
drbd_compat_types.h
Log Message:
Addes some missing braces in the ALIGN macro [patch by LGE]
===================================================================
RCS file: /var/lib/cvs/drbd/drbd/drbd/Attic/drbd_compat_types.h,v
retrieving revision 1.1.2.7
retrieving revision 1.1.2.8
diff -u -3 -r1.1.2.7 -r1.1.2.8
--- drbd_compat_types.h 30 Jun 2004 08:34:50 -0000 1.1.2.7
+++ drbd_compat_types.h 1 Jul 2004 08:57:19 -0000 1.1.2.8
@@ -110,7 +110,7 @@
#endif
#ifndef ALIGN
-#define ALIGN(x,s) (((x) + (s - 1)) & ~(s - 1))
+#define ALIGN(x,a) ( ((x) + (a)-1) &~ ((a)-1) )
#endif
#ifndef BUG_ON