summaryrefslogtreecommitdiffstats
path: root/src/host/osmocon/osmocon.c
diff options
context:
space:
mode:
authorHolger Hans Peter Freyther <zecke@selfish.org>2010-10-03 02:16:32 +0800
committerHolger Hans Peter Freyther <zecke@selfish.org>2010-10-03 02:16:32 +0800
commitef9298d9153f925f0c63fc0708d8695240fbe29c (patch)
tree8f6d116e7259f83ac8f57e93dac640da2348c552 /src/host/osmocon/osmocon.c
parentb504f5c8b8316066abe63967781045d496df020f (diff)
osmocon.c: Use C99 inttypes instead of u_intX_t.
Diffstat (limited to 'src/host/osmocon/osmocon.c')
-rw-r--r--src/host/osmocon/osmocon.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/host/osmocon/osmocon.c b/src/host/osmocon/osmocon.c
index d702d745..9d592207 100644
--- a/src/host/osmocon/osmocon.c
+++ b/src/host/osmocon/osmocon.c
@@ -796,9 +796,9 @@ static void hdlc_tool_cb(uint8_t dlci, struct msgb *msg)
if(srv) {
struct tool_connection *con;
- u_int16_t *len;
+ uint16_t *len;
- len = (u_int16_t *) msgb_push(msg, 2);
+ len = (uint16_t *) msgb_push(msg, 2);
*len = htons(msg->len - sizeof(*len));
llist_for_each_entry(con, &srv->connections, entry) {
@@ -1265,8 +1265,8 @@ static int version(const char *name)
static int un_tool_read(struct bsc_fd *fd, unsigned int flags)
{
int rc, c;
- u_int16_t length = 0xffff;
- u_int8_t buf[4096];
+ uint16_t length = 0xffff;
+ uint8_t buf[4096];
struct tool_connection *con = (struct tool_connection *)fd->data;
c = 0;
@@ -1286,7 +1286,7 @@ static int un_tool_read(struct bsc_fd *fd, unsigned int flags)
c += rc;
}
- length = ntohs(*(u_int16_t*)buf);
+ length = ntohs(*(uint16_t*)buf);
c = 0;
while(c < length) {