diff options
author | Holger Hans Peter Freyther <zecke@selfish.org> | 2010-10-03 02:16:32 +0800 |
---|---|---|
committer | Holger Hans Peter Freyther <zecke@selfish.org> | 2010-10-03 02:16:32 +0800 |
commit | ef9298d9153f925f0c63fc0708d8695240fbe29c (patch) | |
tree | 8f6d116e7259f83ac8f57e93dac640da2348c552 /src | |
parent | b504f5c8b8316066abe63967781045d496df020f (diff) |
osmocon.c: Use C99 inttypes instead of u_intX_t.
Diffstat (limited to 'src')
-rw-r--r-- | src/host/osmocon/osmocon.c | 10 |
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) { |