aboutsummaryrefslogtreecommitdiff
path: root/e2fsprogs/blkid/cache.c
diff options
context:
space:
mode:
Diffstat (limited to 'e2fsprogs/blkid/cache.c')
-rw-r--r--e2fsprogs/blkid/cache.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/e2fsprogs/blkid/cache.c b/e2fsprogs/blkid/cache.c
index 0dd1b6286..87be1269f 100644
--- a/e2fsprogs/blkid/cache.c
+++ b/e2fsprogs/blkid/cache.c
@@ -47,9 +47,9 @@ int blkid_get_cache(blkid_cache *ret_cache, const char *filename)
47 if (!filename) 47 if (!filename)
48 filename = BLKID_CACHE_FILE; 48 filename = BLKID_CACHE_FILE;
49 cache->bic_filename = blkid_strdup(filename); 49 cache->bic_filename = blkid_strdup(filename);
50 50
51 blkid_read_cache(cache); 51 blkid_read_cache(cache);
52 52
53 *ret_cache = cache; 53 *ret_cache = cache;
54 return 0; 54 return 0;
55} 55}
@@ -62,7 +62,7 @@ void blkid_put_cache(blkid_cache cache)
62 (void) blkid_flush_cache(cache); 62 (void) blkid_flush_cache(cache);
63 63
64 DBG(DEBUG_CACHE, printf("freeing cache struct\n")); 64 DBG(DEBUG_CACHE, printf("freeing cache struct\n"));
65 65
66 /* DEB_DUMP_CACHE(cache); */ 66 /* DEB_DUMP_CACHE(cache); */
67 67
68 while (!list_empty(&cache->bic_devs)) { 68 while (!list_empty(&cache->bic_devs)) {
@@ -79,7 +79,7 @@ void blkid_put_cache(blkid_cache cache)
79 79
80 while (!list_empty(&tag->bit_names)) { 80 while (!list_empty(&tag->bit_names)) {
81 blkid_tag bad = list_entry(tag->bit_names.next, 81 blkid_tag bad = list_entry(tag->bit_names.next,
82 struct blkid_struct_tag, 82 struct blkid_struct_tag,
83 bit_names); 83 bit_names);
84 84
85 DBG(DEBUG_CACHE, printf("warning: unfreed tag %s=%s\n", 85 DBG(DEBUG_CACHE, printf("warning: unfreed tag %s=%s\n",
@@ -90,7 +90,7 @@ void blkid_put_cache(blkid_cache cache)
90 } 90 }
91 if (cache->bic_filename) 91 if (cache->bic_filename)
92 free(cache->bic_filename); 92 free(cache->bic_filename);
93 93
94 free(cache); 94 free(cache);
95} 95}
96 96