summaryrefslogtreecommitdiff
path: root/lib/vty.c
diff options
context:
space:
mode:
authorgdt <gdt>2005-12-29 16:03:32 +0000
committergdt <gdt>2005-12-29 16:03:32 +0000
commitf80a016fbd5ba51dc08412d7fd0794b51223c978 (patch)
tree6be9f97cfb52681d692c2c40fb3e4ffe47e1ac23 /lib/vty.c
parent6083e1f82ce3a33d9929dea8c64cbc5ffe486000 (diff)
2005-12-29 Greg Troxel <gdt@fnord.ir.bbn.com>
* vty.c (vty_hello): add cast to quiet lint (from David Young) (patch-lint)
Diffstat (limited to 'lib/vty.c')
-rw-r--r--lib/vty.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/vty.c b/lib/vty.c
index 39d3701a..bb8df129 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);