From 2a18585bae74f9fc4b42b88fc3b98c666f7c8f94 Mon Sep 17 00:00:00 2001 From: resver Date: Tue, 9 Nov 2010 18:42:35 +0000 Subject: [PATCH] exfat_count_free_clusters() should not modify the argument. git-svn-id: http://exfat.googlecode.com/svn/trunk@175 60bc1c72-a15a-11de-b98f-4500b42dc123 --- libexfat/cluster.c | 2 +- libexfat/exfat.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/libexfat/cluster.c b/libexfat/cluster.c index 3618ce5..fc7dbc5 100644 --- a/libexfat/cluster.c +++ b/libexfat/cluster.c @@ -381,7 +381,7 @@ int exfat_truncate(struct exfat* ef, struct exfat_node* node, uint64_t size) return 0; } -uint32_t exfat_count_free_clusters(struct exfat* ef) +uint32_t exfat_count_free_clusters(const struct exfat* ef) { uint32_t free_clusters = 0; uint32_t i; diff --git a/libexfat/exfat.h b/libexfat/exfat.h index 035afa1..177bde2 100644 --- a/libexfat/exfat.h +++ b/libexfat/exfat.h @@ -140,7 +140,7 @@ cluster_t exfat_advance_cluster(const struct exfat* ef, struct exfat_node* node, uint32_t count); void exfat_flush_cmap(struct exfat* ef); int exfat_truncate(struct exfat* ef, struct exfat_node* node, uint64_t size); -uint32_t exfat_count_free_clusters(struct exfat* ef); +uint32_t exfat_count_free_clusters(const struct exfat* ef); void exfat_stat(const struct exfat* ef, const struct exfat_node* node, struct stat* stbuf); -- 2.11.0