summaryrefslogtreecommitdiff
path: root/lib/blkid
diff options
context:
space:
mode:
authorTheodore Ts'o <tytso@mit.edu>2006-03-25 01:42:02 -0500
committerTheodore Ts'o <tytso@mit.edu>2006-03-25 01:42:02 -0500
commit292811f2aaa39c3f1ee2cbb56fe2b586f8337946 (patch)
tree5e72d80b5c6c4208e92c9bf9fdbcfd994d406890 /lib/blkid
parentfcadc8c84cf0a390ab8a41ff620bb31630b5e0a9 (diff)
downloade2fsprogs-292811f2aaa39c3f1ee2cbb56fe2b586f8337946.tar.gz
Fix typo bug in previous commit (6ae1ed49c8c6)
"fd" should have been "probe.fd" so blkid/probe.c can compile without errors. Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
Diffstat (limited to 'lib/blkid')
-rw-r--r--lib/blkid/probe.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/blkid/probe.c b/lib/blkid/probe.c
index 3ce1e4ca..dcc6a6e4 100644
--- a/lib/blkid/probe.c
+++ b/lib/blkid/probe.c
@@ -770,7 +770,7 @@ blkid_dev blkid_verify(blkid_cache cache, blkid_dev dev)
if (((probe.fd = open(dev->bid_name, O_RDONLY)) < 0) ||
(fstat(probe.fd, &st) < 0)) {
- if (probe.fd >= 0) close(fd);
+ if (probe.fd >= 0) close(probe.fd);
if (errno == ENXIO || errno == ENODEV || errno == ENOENT) {
blkid_free_dev(dev);
return NULL;
@@ -838,7 +838,7 @@ try_again:
}
if (!dev->bid_type) {
- if (probe.fd >= 0) close(fd);
+ if (probe.fd >= 0) close(probe.fd);
blkid_free_dev(dev);
return NULL;
}