commit | 3e554cc116a55c9fffe17f4e819d5f2ecf8ad0af | [log] [tgz] |
---|---|---|
author | Andreas Dilger <adilger@dilger.ca> | Thu Nov 22 16:17:19 2012 -0700 |
committer | Theodore Ts'o <tytso@mit.edu> | Mon Nov 26 09:34:20 2012 -0500 |
tree | 5dbb9e671006f242970157854497f2c6ec3b47b9 | |
parent | ab00fdac7c5345d06d936640c12e1d24c7fdb6b2 [diff] |
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>