summaryrefslogtreecommitdiff
path: root/function.c
diff options
context:
space:
mode:
authorPaul Smith <psmith@gnu.org>2000-02-09 07:02:18 +0000
committerPaul Smith <psmith@gnu.org>2000-02-09 07:02:18 +0000
commite68a27ec7b22753dd2a61585a69290ca2e3c9d80 (patch)
treeb7b5f3afa662aee4e12f13772aaa663f370e5564 /function.c
parent17f2dda0acc8f97e40819d75d99d85283d9027a1 (diff)
downloadgunmake-e68a27ec7b22753dd2a61585a69290ca2e3c9d80.tar.gz
* Fix some warnings in gettext.c and function.c
* Don't try to execute tests which are actually directories.
Diffstat (limited to 'function.c')
-rw-r--r--function.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/function.c b/function.c
index 743fe79..c993c74 100644
--- a/function.c
+++ b/function.c
@@ -492,9 +492,9 @@ func_notdir_suffix(o, argv, funcname)
char *list_iterator = argv[0];
char *p2 =0;
int doneany =0;
- int len=0;
+ unsigned int len=0;
- int is_suffix = streq(funcname, "suffix");
+ int is_suffix = streq (funcname, "suffix");
int is_notdir = !is_suffix;
while ((p2 = find_next_token (&list_iterator, &len)) != 0)
{
@@ -555,7 +555,7 @@ func_basename_dir(o, argv, funcname)
int doneany=0;
unsigned int len=0;
char *p=0;
- int is_basename= streq(funcname, "basename");
+ int is_basename= streq (funcname, "basename");
int is_dir= !is_basename;
while ((p2 = find_next_token (&p3, &len)) != 0)
@@ -563,7 +563,7 @@ func_basename_dir(o, argv, funcname)
p = p2 + len;
while (p >= p2 && (!is_basename || *p != '.'))
{
- if (IS_PATHSEP(*p))
+ if (IS_PATHSEP (*p))
break;
--p;
}