]> git.sven.stormbind.net Git - sven/exfat-utils.git/blobdiff - libexfat/lookup.c
Imported Upstream version 1.0.0
[sven/exfat-utils.git] / libexfat / lookup.c
index d65097689fb40c090410290aae149e044129b129..2e1aa81844c98fa0a51c02475c5567791a98c15a 100644 (file)
@@ -2,7 +2,7 @@
        lookup.c (02.09.09)
        exFAT file system implementation library.
 
-       Copyright (C) 2010-2012  Andrew Nayenko
+       Copyright (C) 2010-2013  Andrew Nayenko
 
        This program is free software: you can redistribute it and/or modify
        it under the terms of the GNU General Public License as published by
@@ -145,14 +145,14 @@ int exfat_lookup(struct exfat* ef, struct exfat_node** node,
        return 0;
 }
 
-static int is_last_comp(const char* comp, size_t length)
+static bool is_last_comp(const char* comp, size_t length)
 {
        const char* p = comp + length;
 
        return get_comp(p, &p) == 0;
 }
 
-static int is_allowed(const char* comp, size_t length)
+static bool is_allowed(const char* comp, size_t length)
 {
        size_t i;
 
@@ -169,9 +169,9 @@ static int is_allowed(const char* comp, size_t length)
                case '<':
                case '>':
                case '|':
-                       return 0;
+                       return false;
                }
-       return 1;
+       return true;
 }
 
 int exfat_split(struct exfat* ef, struct exfat_node** parent,