summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorgdt <gdt>2005-12-29 16:03:32 +0000
committergdt <gdt>2005-12-29 16:03:32 +0000
commit4aa77477580073f2a8b17655a4cd085fcf78faf1 (patch)
tree3887989090d55fda7442ccb69f0423b82efdc39a
parent13ff32316011e970438ace245a6e8507a6cfc94f (diff)
downloadquagga-4aa77477580073f2a8b17655a4cd085fcf78faf1.tar.bz2
quagga-4aa77477580073f2a8b17655a4cd085fcf78faf1.tar.xz
2005-12-29 Greg Troxel <gdt@fnord.ir.bbn.com>
* vty.c (vty_hello): add cast to quiet lint (from David Young) (patch-lint)
-rw-r--r--lib/ChangeLog4
-rw-r--r--lib/vty.c2
2 files changed, 5 insertions, 1 deletions
diff --git a/lib/ChangeLog b/lib/ChangeLog
index 5788380b..b02cc517 100644
--- a/lib/ChangeLog
+++ b/lib/ChangeLog
@@ -1,3 +1,7 @@
+2005-12-29 Greg Troxel <gdt@fnord.ir.bbn.com>
+
+ * vty.c (vty_hello): add cast to quiet lint (from David Young)
+
2005-11-26 Paul Jakma <paul.jakma@sun.com>
* buffer.c: (struct buffer_data) change gcc zero array
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);