about summary refs log tree commit diff
path: root/Src/utils.c
diff options
context:
space:
mode:
authorWayne Davison <wayned@users.sourceforge.net>2004-05-28 19:21:05 +0000
committerWayne Davison <wayned@users.sourceforge.net>2004-05-28 19:21:05 +0000
commit14c7f464c2e1e08bbfbd5949c119ac34b404b7d4 (patch)
tree938d6e786aaaee68b36a394a61fa9c018cfdaa3e /Src/utils.c
parentfea94cd79f6b2a3a8b8e3f64634af9b641a17822 (diff)
downloadzsh-14c7f464c2e1e08bbfbd5949c119ac34b404b7d4.tar.gz
zsh-14c7f464c2e1e08bbfbd5949c119ac34b404b7d4.tar.xz
zsh-14c7f464c2e1e08bbfbd5949c119ac34b404b7d4.zip
Silenced two signed/unsigned comparison compiler warnings.
Diffstat (limited to 'Src/utils.c')
-rw-r--r--Src/utils.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/Src/utils.c b/Src/utils.c
index 67bc28abd..8b3bba5d8 100644
--- a/Src/utils.c
+++ b/Src/utils.c
@@ -515,7 +515,7 @@ finddir(char *s)
     if(!strcmp(s, finddir_full) && *finddir_full)
 	return finddir_last;
 
-    if(strlen(s) >= ffsz) {
+    if ((int)strlen(s) >= ffsz) {
 	free(finddir_full);
 	finddir_full = zalloc(ffsz = strlen(s) * 2);
     }
@@ -1908,7 +1908,7 @@ colonsplit(char *s, int uniq)
 	for (; *t && *t != ':'; t++);
 	if (uniq)
 	    for (p = ret; p < ptr; p++)
-		if (strlen(*p) == t - s && ! strncmp(*p, s, t - s))
+		if ((int)strlen(*p) == t - s && ! strncmp(*p, s, t - s))
 		    goto cont;
 	*ptr = (char *) zalloc((t - s) + 1);
 	ztrncpy(*ptr++, s, t - s);