This fixes compilation with -Wstrict-overflow=2
Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
unsigned int flags)
{
/* break into a series of components */
- int num_components;
+ size_t num_components;
char **components;
char *p, *partial_name;
- int i;
+ size_t i;
/* break up the full name info pathname components */
num_components=2;
{
codepoint_t c;
size_t c_size, len;
- int i, num_components, err_count;
+ size_t i, num_components, err_count;
char **components;
char *p, *s, *ret;
err_count++;
}
}
- if (err_count) {
+ if (err_count > 0) {
if (flags & PVFS_RESOLVE_WILDCARD) err_count--;
if (err_count==1) {