svn rev #23252: trunk/src/include/
tlyu@MIT.EDU
tlyu at MIT.EDU
Mon Nov 16 20:21:31 EST 2009
http://src.mit.edu/fisheye/changelog/krb5/?cs=23252
Commit By: tlyu
Log Message:
Rework using "do { } while (0)" in macro bodies to avoid divergent
emacs-22 vs emacs-23 indentation.
Changed Files:
U trunk/src/include/pkinit_apple_utils.h
Modified: trunk/src/include/pkinit_apple_utils.h
===================================================================
--- trunk/src/include/pkinit_apple_utils.h 2009-11-17 00:11:26 UTC (rev 23251)
+++ trunk/src/include/pkinit_apple_utils.h 2009-11-17 01:21:31 UTC (rev 23252)
@@ -113,12 +113,16 @@
* 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.
More information about the cvs-krb5
mailing list