Windows: make osi_Log macro safe for if..else
authorJeffrey Altman <jaltman@your-file-system.com>
Sun, 7 Aug 2011 18:11:17 +0000 (14:11 -0400)
committerJeffrey Altman <jaltman@openafs.org>
Thu, 11 Aug 2011 06:11:51 +0000 (23:11 -0700)
commit6691ff6daceb7960dc925983a2b9129877e67c9a
tree9bf8855e9e0cf96ca853ef6b347acb8ae99f88dc
parent833010acac069c97f59c527e23eaa4b71ff18981
Windows: make osi_Log macro safe for if..else

wrap the osi_Log macro's internal if statement with
a do {...} while(0) block in order to ensure that
it is safe for use in if..else controls without bracing.

Change-Id: Ica7bb95dfb1c0285a925771a9b659f85ec0e075f
Reviewed-on: http://gerrit.openafs.org/5189
Tested-by: BuildBot <buildbot@rampaginggeek.com>
Reviewed-by: Jeffrey Altman <jaltman@openafs.org>
Tested-by: Jeffrey Altman <jaltman@openafs.org>
src/WINNT/client_osi/osilog.h