X-Git-Url: http://git.sven.stormbind.net/?p=sven%2Fexfat-utils.git;a=blobdiff_plain;f=libexfat%2Flookup.c;h=2e1aa81844c98fa0a51c02475c5567791a98c15a;hp=d65097689fb40c090410290aae149e044129b129;hb=refs%2Ftags%2Fupstream%2F1.0.0;hpb=70a4b10edcf53a90140e6dd80ccaa045f3647ad7 diff --git a/libexfat/lookup.c b/libexfat/lookup.c index d650976..2e1aa81 100644 --- a/libexfat/lookup.c +++ b/libexfat/lookup.c @@ -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,