summaryrefslogtreecommitdiffstats
path: root/vtysh
diff options
context:
space:
mode:
authorRenato Westphal <renato@opensourcerouting.org>2018-02-02 18:11:03 +0100
committerRenato Westphal <renato@opensourcerouting.org>2018-02-02 19:31:20 +0100
commita7ce0ad1dacc62d01ec11422586b211c5239e890 (patch)
tree402dc4b6d88647cd14edf5c5a93489491ad0a056 /vtysh
parent*: silence '-Wmaybe-uninitialized' warnings on NetBSD (diff)
downloadfrr-a7ce0ad1dacc62d01ec11422586b211c5239e890.tar.xz
frr-a7ce0ad1dacc62d01ec11422586b211c5239e890.zip
*: silence '-Wchar-subscripts' warnings on NetBSD
Signed-off-by: Renato Westphal <renato@opensourcerouting.org>
Diffstat (limited to 'vtysh')
-rw-r--r--vtysh/vtysh.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/vtysh/vtysh.c b/vtysh/vtysh.c
index 097f39fcf..94c4ba433 100644
--- a/vtysh/vtysh.c
+++ b/vtysh/vtysh.c
@@ -504,11 +504,11 @@ static char *trim(char *s)
return s;
end = s + size - 1;
- while (end >= s && isspace(*end))
+ while (end >= s && isspace((int)*end))
end--;
*(end + 1) = '\0';
- while (*s && isspace(*s))
+ while (*s && isspace((int)*s))
s++;
return s;