summaryrefslogtreecommitdiffstats
path: root/src/vty
diff options
context:
space:
mode:
authorHarald Welte <laforge@gnumonks.org>2014-03-11 10:31:19 +0100
committerHolger Hans Peter Freyther <holger@moiji-mobile.com>2014-11-14 15:22:14 +0100
commit7b74dda31bc05a7210bbbcb382b78d6f9cde5b15 (patch)
tree71765cfe0d0758433f1767d6057f547bf2fc8449 /src/vty
parentb592ab71a7e3d49d62ea986401f0902953375057 (diff)
remove references to u_char type, use 'unsigned char' instead
... u_char not being defined on Nuttx.
Diffstat (limited to 'src/vty')
-rw-r--r--src/vty/buffer.c2
-rw-r--r--src/vty/vty.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/vty/buffer.c b/src/vty/buffer.c
index e385f9fd..def2f522 100644
--- a/src/vty/buffer.c
+++ b/src/vty/buffer.c
@@ -180,7 +180,7 @@ void buffer_put(struct buffer *b, const void *p, size_t size)
}
/* Insert character into the buffer. */
-void buffer_putc(struct buffer *b, u_char c)
+void buffer_putc(struct buffer *b, unsigned char c)
{
buffer_put(b, &c, 1);
}
diff --git a/src/vty/vty.c b/src/vty/vty.c
index 10a323fd..f34e5291 100644
--- a/src/vty/vty.c
+++ b/src/vty/vty.c
@@ -276,7 +276,7 @@ int vty_out(struct vty *vty, const char *format, ...)
p = buf;
/* Pointer p must point out buffer. */
- buffer_put(vty->obuf, (u_char *) p, len);
+ buffer_put(vty->obuf, (unsigned char *) p, len);
/* If p is not different with buf, it is allocated buffer. */
if (p != buf)