Whamcloud - gitweb
ext2fs, blkid: localize environment-specific variables
authorAndreas Dilger <adilger@dilger.ca>
Thu, 22 Nov 2012 23:17:19 +0000 (16:17 -0700)
committerTheodore Ts'o <tytso@mit.edu>
Mon, 26 Nov 2012 14:34:20 +0000 (09:34 -0500)
commit3e554cc116a55c9fffe17f4e819d5f2ecf8ad0af
tree5dbb9e671006f242970157854497f2c6ec3b47b9
parentab00fdac7c5345d06d936640c12e1d24c7fdb6b2
ext2fs, blkid: localize environment-specific variables

Restructure the ext2fs_get_device_size() and blkid_get_dev_size()
code to localize the variables used for different device probing
methods.  This at least reduces the #ifdef mess to only one part
of the code for each method, and avoids "unused variable" compiler
warnings added when variables are declared without being #ifdef'd.

Signed-off-by: Andreas Dilger <adilger@dilger.ca>
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
lib/blkid/getsize.c
lib/ext2fs/getsize.c