OSDN Git Service

exfat_count_free_clusters() should not modify the argument.
authorresver <resver@60bc1c72-a15a-11de-b98f-4500b42dc123>
Tue, 9 Nov 2010 18:42:35 +0000 (18:42 +0000)
committerresver <resver@60bc1c72-a15a-11de-b98f-4500b42dc123>
Tue, 9 Nov 2010 18:42:35 +0000 (18:42 +0000)
git-svn-id: http://exfat.googlecode.com/svn/trunk@175 60bc1c72-a15a-11de-b98f-4500b42dc123

libexfat/cluster.c
libexfat/exfat.h

index 3618ce5..fc7dbc5 100644 (file)
@@ -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;
index 035afa1..177bde2 100644 (file)
@@ -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);