From: gdt Date: Thu, 29 Dec 2005 16:03:32 +0000 (+0000) Subject: 2005-12-29 Greg Troxel X-Git-Tag: frr-2.0-rc1~2807 X-Git-Url: https://git.puffer.fish/?a=commitdiff_plain;h=f80a016fbd5ba51dc08412d7fd0794b51223c978;p=matthieu%2Ffrr.git 2005-12-29 Greg Troxel * vty.c (vty_hello): add cast to quiet lint (from David Young) (patch-lint) --- diff --git a/lib/ChangeLog b/lib/ChangeLog index 5788380ba5..b02cc517ca 100644 --- a/lib/ChangeLog +++ b/lib/ChangeLog @@ -1,3 +1,7 @@ +2005-12-29 Greg Troxel + + * vty.c (vty_hello): add cast to quiet lint (from David Young) + 2005-11-26 Paul Jakma * buffer.c: (struct buffer_data) change gcc zero array diff --git a/lib/vty.c b/lib/vty.c index 39d3701a74..bb8df12962 100644 --- a/lib/vty.c +++ b/lib/vty.c @@ -228,7 +228,7 @@ vty_hello (struct vty *vty) { char *s; /* work backwards to ignore trailling isspace() */ - for (s = buf + strlen (buf); (s > buf) && isspace (*(s - 1)); + for (s = buf + strlen (buf); (s > buf) && isspace ((int)*(s - 1)); s--); *s = '\0'; vty_out (vty, "%s%s", buf, VTY_NEWLINE);