assorted fixes for bugs found with randomconfig

This commit is contained in:
Denis Vlasenko
2007-02-03 03:31:13 +00:00
parent e968fcd562
commit 4c97863109
5 changed files with 12 additions and 8 deletions

View File

@@ -316,12 +316,15 @@ static int find_type(const char *type)
}
#endif
#if ENABLE_FEATURE_FIND_PERM || ENABLE_FEATURE_FIND_MTIME \
|| ENABLE_FEATURE_FIND_MMIN
static const char* plus_minus_num(const char* str)
{
if (*str == '-' || *str == '+')
str++;
return str;
}
#endif
static action*** parse_params(char **argv)
{
@@ -486,7 +489,7 @@ static action*** parse_params(char **argv)
ap->subst_count[i] = count_subst(ap->exec_argv[i]);
}
#endif
#ifdef ENABLE_FEATURE_FIND_USER
#if ENABLE_FEATURE_FIND_USER
else if (strcmp(arg, "-user") == 0) {
action_user *ap;
if (!*++argv)