]> sourceware.org Git - lvm2.git/commit
libdm: enclose dm_stats_walk_do/while() body in do..while
authorBryn M. Reeves <bmr@redhat.com>
Thu, 7 Jul 2016 20:28:35 +0000 (21:28 +0100)
committerBryn M. Reeves <bmr@redhat.com>
Fri, 8 Jul 2016 10:14:22 +0000 (11:14 +0100)
commit5e06b33c51e2b264ad8a48b61f18bf3bff37c992
tree71a65d4b9e8290c6a7237403dc95eaffe44bc174
parent6233bcf52d98d9d0a3c87b22cb7700521b5358a2
libdm: enclose dm_stats_walk_do/while() body in do..while

The call to dm_stats_walk_start() before the do statement makes
dm_stats_walk_do() behave inconsistently depending on context;
wrap them in an additional do { } while (0) so that the macro
always expands to a valid statement.
libdm/libdevmapper.h
This page took 0.0381 seconds and 5 git commands to generate.