diff options
author | Holger Hans Peter Freyther <zecke@selfish.org> | 2010-07-31 04:37:26 +0800 |
---|---|---|
committer | Holger Hans Peter Freyther <zecke@selfish.org> | 2010-07-31 04:37:26 +0800 |
commit | 5aa17014deace6d91a5cbb9784a9c05521ba19c8 (patch) | |
tree | 50cc56ab2fa7732216e13755112e7ef3735e4241 /src/openbsc_nat | |
parent | 97f66e2b534e2a54c63360a3f8134a0189c54e25 (diff) |
u_int8_t -> uint8_t
Diffstat (limited to 'src/openbsc_nat')
-rw-r--r-- | src/openbsc_nat/tlv_parser.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/src/openbsc_nat/tlv_parser.c b/src/openbsc_nat/tlv_parser.c index e44b3a1..9255fed 100644 --- a/src/openbsc_nat/tlv_parser.c +++ b/src/openbsc_nat/tlv_parser.c @@ -28,11 +28,11 @@ int tlv_dump(struct tlv_parsed *dec) * * Also, returns the number of bytes consumed by the TLV entry */ -int tlv_parse_one(u_int8_t *o_tag, u_int16_t *o_len, const u_int8_t **o_val, +int tlv_parse_one(uint8_t *o_tag, u_int16_t *o_len, const uint8_t **o_val, const struct tlv_definition *def, - const u_int8_t *buf, int buf_len) + const uint8_t *buf, int buf_len) { - u_int8_t tag; + uint8_t tag; int len; tag = *buf; @@ -103,8 +103,8 @@ int tlv_parse_one(u_int8_t *o_tag, u_int16_t *o_len, const u_int8_t **o_val, * lv_tag2: input: a second initial LV tag following lv_tag */ int tlv_parse(struct tlv_parsed *dec, const struct tlv_definition *def, - const u_int8_t *buf, int buf_len, u_int8_t lv_tag, - u_int8_t lv_tag2) + const uint8_t *buf, int buf_len, uint8_t lv_tag, + uint8_t lv_tag2) { int ofs = 0, num_parsed = 0; u_int16_t len; @@ -136,8 +136,8 @@ int tlv_parse(struct tlv_parsed *dec, const struct tlv_definition *def, while (ofs < buf_len) { int rv; - u_int8_t tag; - const u_int8_t *val; + uint8_t tag; + const uint8_t *val; rv = tlv_parse_one(&tag, &len, &val, def, &buf[ofs], buf_len-ofs); |