diff options
author | Renato Westphal <renato@opensourcerouting.org> | 2018-02-02 18:11:03 +0100 |
---|---|---|
committer | Renato Westphal <renato@opensourcerouting.org> | 2018-02-02 19:31:20 +0100 |
commit | a7ce0ad1dacc62d01ec11422586b211c5239e890 (patch) | |
tree | 402dc4b6d88647cd14edf5c5a93489491ad0a056 /vtysh | |
parent | *: silence '-Wmaybe-uninitialized' warnings on NetBSD (diff) | |
download | frr-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.c | 4 |
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; |