Rework using "do { } while (0)" in macro bodies to avoid divergent
authorTom Yu <tlyu@mit.edu>
Tue, 17 Nov 2009 01:21:31 +0000 (01:21 +0000)
committerTom Yu <tlyu@mit.edu>
Tue, 17 Nov 2009 01:21:31 +0000 (01:21 +0000)
emacs-22 vs emacs-23 indentation.

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@23252 dc483132-0cff-0310-8789-dd5450dbe970

src/include/pkinit_apple_utils.h

index 421da207b4779ec5ceeaf16ccb8f5c14d49ed103..be6a930fc826c0db5bdff8590feec43438446298 100644 (file)
@@ -113,12 +113,16 @@ krb5_error_code pkiCfDataToKrb5Data(
  * Non-mallocing conversion between CSSM_DATA and krb5_data
  */
 #define PKI_CSSM_TO_KRB_DATA(cd, kd)            \
-    (kd)->data = (char *)(cd)->Data;            \
-    (kd)->length = (cd)->Length;
+    do {                                        \
+        (kd)->data = (char *)(cd)->Data;        \
+        (kd)->length = (cd)->Length;            \
+    } while (0)
 
 #define PKI_KRB_TO_CSSM_DATA(kd, cd)            \
-    (cd)->Data = (uint8 *)(kd)->data;           \
-    (cd)->Length = (kd)->length;
+    do {                                        \
+        (cd)->Data = (uint8 *)(kd)->data;       \
+        (cd)->Length = (kd)->length;            \
+    } while (0)
 
 /*
  * Compare to CSSM_DATAs. Return TRUE if they're the same else FALSE.