summaryrefslogtreecommitdiff
path: root/lib/blkid/cache.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/blkid/cache.c')
-rw-r--r--lib/blkid/cache.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/lib/blkid/cache.c b/lib/blkid/cache.c
index efd4656e..7c95726d 100644
--- a/lib/blkid/cache.c
+++ b/lib/blkid/cache.c
@@ -100,14 +100,14 @@ int blkid_get_cache(blkid_cache *ret_cache, const char *filename)
if (filename && !strlen(filename))
filename = 0;
- if (!filename)
+ if (!filename)
filename = safe_getenv("BLKID_FILE");
if (!filename)
filename = BLKID_CACHE_FILE;
cache->bic_filename = blkid_strdup(filename);
-
+
blkid_read_cache(cache);
-
+
*ret_cache = cache;
return 0;
}
@@ -120,7 +120,7 @@ void blkid_put_cache(blkid_cache cache)
(void) blkid_flush_cache(cache);
DBG(DEBUG_CACHE, printf("freeing cache struct\n"));
-
+
/* DBG(DEBUG_CACHE, blkid_debug_dump_cache(cache)); */
while (!list_empty(&cache->bic_devs)) {
@@ -137,7 +137,7 @@ void blkid_put_cache(blkid_cache cache)
while (!list_empty(&tag->bit_names)) {
blkid_tag bad = list_entry(tag->bit_names.next,
- struct blkid_struct_tag,
+ struct blkid_struct_tag,
bit_names);
DBG(DEBUG_CACHE, printf("warning: unfreed tag %s=%s\n",
@@ -148,7 +148,7 @@ void blkid_put_cache(blkid_cache cache)
}
if (cache->bic_filename)
free(cache->bic_filename);
-
+
free(cache);
}
@@ -165,12 +165,12 @@ void blkid_gc_cache(blkid_cache cache)
if (!p)
break;
if (stat(dev->bid_name, &st) < 0) {
- DBG(DEBUG_CACHE,
+ DBG(DEBUG_CACHE,
printf("freeing %s\n", dev->bid_name));
blkid_free_dev(dev);
cache->bic_flags |= BLKID_BIC_FL_CHANGED;
} else {
- DBG(DEBUG_CACHE,
+ DBG(DEBUG_CACHE,
printf("Device %s exists\n", dev->bid_name));
}
}