summaryrefslogtreecommitdiffstats
path: root/qemu-img.texi
diff options
context:
space:
mode:
authorBlue Swirl <blauwirbel@gmail.com>2010-08-20 21:03:24 +0000
committerBlue Swirl <blauwirbel@gmail.com>2010-08-20 21:03:24 +0000
commit66fe09eebb813b79e14279df11d723b433a973fb (patch)
tree5e2382045fa4be718fbb51aa9d2405dcc0b4813f /qemu-img.texi
parentf143efa60c44c65c22aeeb04217f3501e3d04b22 (diff)
downloadhqemu-66fe09eebb813b79e14279df11d723b433a973fb.zip
hqemu-66fe09eebb813b79e14279df11d723b433a973fb.tar.gz
Use ARRAY_SIZE macro
Replace array size calculations with ARRAY_SIZE macro. Implemented with this Coccinelle semantic patch, adapted from Linux kernel: @@ type T; T[] E; @@ - (sizeof(E)/sizeof(*E)) + ARRAY_SIZE(E) @@ type T; T[] E; @@ - (sizeof(E)/sizeof(E[...])) + ARRAY_SIZE(E) @@ type T; T[] E; @@ - (sizeof(E)/sizeof(T)) + ARRAY_SIZE(E) Some files (*-dis.c, tests/*) had to be filtered out. Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
Diffstat (limited to 'qemu-img.texi')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud