From 12b2ed63ab6f2b075b361ba7081e62d32b0cc122 Mon Sep 17 00:00:00 2001 From: Wayne Davison Date: Fri, 28 May 2004 19:24:13 +0000 Subject: Silenced one signed/unsigned comparison compiler warning. --- Src/Modules/zftp.c | 2 +- Src/Zle/compctl.c | 2 +- Src/Zle/complete.c | 2 +- Src/Zle/zle_hist.c | 2 +- Src/Zle/zle_refresh.c | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/Src/Modules/zftp.c b/Src/Modules/zftp.c index c4f6e1ff5..e4c5a9703 100644 --- a/Src/Modules/zftp.c +++ b/Src/Modules/zftp.c @@ -431,7 +431,7 @@ zfunalarm(void) * I love the way alarm() uses unsigned int while time_t * is probably something completely different. */ - time_t tdiff = time(NULL) - oaltime; + unsigned int tdiff = time(NULL) - oaltime; alarm(oalremain < tdiff ? 1 : oalremain - tdiff); } else alarm(0); diff --git a/Src/Zle/compctl.c b/Src/Zle/compctl.c index 247f4c02d..9023dbd69 100644 --- a/Src/Zle/compctl.c +++ b/Src/Zle/compctl.c @@ -2892,7 +2892,7 @@ sep_comp_string(char *ss, char *s, int noffs) sl = strlen(s); if (swe > sl) { swe = sl; - if (strlen(ns) > swe - swb + 1) + if ((int)strlen(ns) > swe - swb + 1) ns[swe - swb + 1] = '\0'; } qs = tricat(multiquote(s + swe, 0), qisuf, ""); diff --git a/Src/Zle/complete.c b/Src/Zle/complete.c index b325b8536..3939bdd07 100644 --- a/Src/Zle/complete.c +++ b/Src/Zle/complete.c @@ -788,7 +788,7 @@ do_comp_vars(int test, int na, char *sa, int nb, char *sb, int mod) if (!na) return 1; if (na > 0 && - strlen(test == CVT_PRENUM ? compprefix : compsuffix) >= na) { + (int)strlen(test == CVT_PRENUM ? compprefix : compsuffix) >= na) { if (mod) { if (test == CVT_PRENUM) ignore_prefix(na); diff --git a/Src/Zle/zle_hist.c b/Src/Zle/zle_hist.c index 94770b235..f1463cd15 100644 --- a/Src/Zle/zle_hist.c +++ b/Src/Zle/zle_hist.c @@ -808,7 +808,7 @@ doisearch(char **args, int dir) else pos -= 1 + (pos != 1 && s[pos-2] == Meta); } else if (sbuf[0] != '^') { - if (pos >= strlen(s+1)) + if (pos >= (int)strlen(s+1)) skip_line = 1; else pos += 1 + (s[pos] == Meta); diff --git a/Src/Zle/zle_refresh.c b/Src/Zle/zle_refresh.c index 86564eb74..2b90edd0c 100644 --- a/Src/Zle/zle_refresh.c +++ b/Src/Zle/zle_refresh.c @@ -1033,7 +1033,7 @@ tc_rightcurs(int ct) if we're anywhere in the prompt, goto the left column and write the whole prompt out unless ztrlen(lpromptbuf) == lpromptw : we can cheat then */ if (vln == 0 && i < lpromptw && !(termflags & TERM_SHORT)) { - if (strlen(lpromptbuf) == lpromptw) + if ((int)strlen(lpromptbuf) == lpromptw) fputs(lpromptbuf + i, shout); else if (tccan(TCRIGHT) && (tclen[TCRIGHT] * ct <= ztrlen(lpromptbuf))) /* it is cheaper to send TCRIGHT than reprint the whole prompt */ -- cgit 1.4.1