aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHarald Welte <laforge@gnumonks.org>2014-03-11 10:31:19 +0100
committerHarald Welte <laforge@gnumonks.org>2014-03-11 11:14:38 +0100
commite51308506ac91a07049d82d1b9663676ab8754ec (patch)
tree98113a34e0dcdb74714c6da4782f92da6f790da6
parentce1ab35baacce2d10f448cc7722198b542eb423f (diff)
remove reference to u_char type, use 'unsigned char' instead
... u_char not being defined on Nuttx.
-rw-r--r--include/osmocom/vty/buffer.h2
-rw-r--r--include/osmocom/vty/command.h2
-rw-r--r--src/vty/buffer.c2
-rw-r--r--src/vty/vty.c2
4 files changed, 4 insertions, 4 deletions
diff --git a/include/osmocom/vty/buffer.h b/include/osmocom/vty/buffer.h
index c9467a91..1558f71e 100644
--- a/include/osmocom/vty/buffer.h
+++ b/include/osmocom/vty/buffer.h
@@ -40,7 +40,7 @@ void buffer_free(struct buffer *);
/* Add the given data to the end of the buffer. */
extern void buffer_put(struct buffer *, const void *, size_t);
/* Add a single character to the end of the buffer. */
-extern void buffer_putc(struct buffer *, u_char);
+extern void buffer_putc(struct buffer *, unsigned char);
/* Add a NUL-terminated string to the end of the buffer. */
extern void buffer_putstr(struct buffer *, const char *);
diff --git a/include/osmocom/vty/command.h b/include/osmocom/vty/command.h
index b3b30291..c9ac3c11 100644
--- a/include/osmocom/vty/command.h
+++ b/include/osmocom/vty/command.h
@@ -123,7 +123,7 @@ struct cmd_element {
unsigned int cmdsize; /*!< \brief Command index count. */
char *config; /*!< \brief Configuration string */
vector subconfig; /*!< \brief Sub configuration string */
- u_char attr; /*!< \brief Command attributes */
+ unsigned char attr; /*!< \brief Command attributes */
};
/*! \brief Command description structure. */
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 8bfc35cd..23df989d 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)