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 /tests/mtp | |
parent | 97f66e2b534e2a54c63360a3f8134a0189c54e25 (diff) |
u_int8_t -> uint8_t
Diffstat (limited to 'tests/mtp')
-rw-r--r-- | tests/mtp/mtp_parse_test.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/tests/mtp/mtp_parse_test.c b/tests/mtp/mtp_parse_test.c index f1f218b..8e4f533 100644 --- a/tests/mtp/mtp_parse_test.c +++ b/tests/mtp/mtp_parse_test.c @@ -10,7 +10,7 @@ #define ARRAY_SIZE(a) (sizeof(a)/sizeof(a[0])) struct mtp_test { - const u_int8_t *input; + const uint8_t *input; const u_int16_t length; struct mtp_level_3_hdr hdr; @@ -522,7 +522,7 @@ static struct mtp_test tests[] = { } }; -static void check_hdr(const u_int8_t *data, const struct mtp_level_3_hdr *t_hdr) +static void check_hdr(const uint8_t *data, const struct mtp_level_3_hdr *t_hdr) { struct mtp_level_3_hdr *hdr; hdr = (struct mtp_level_3_hdr *) data; @@ -542,7 +542,7 @@ static void check_hdr(const u_int8_t *data, const struct mtp_level_3_hdr *t_hdr) abort(); } -static void check_mng(const u_int8_t *data, const struct mtp_level_3_mng *t_mng) +static void check_mng(const uint8_t *data, const struct mtp_level_3_mng *t_mng) { struct mtp_level_3_hdr *hdr = (struct mtp_level_3_hdr *) data; struct mtp_level_3_mng *mng = (struct mtp_level_3_mng *) &hdr->data[0]; @@ -560,7 +560,7 @@ static void check_mng(const u_int8_t *data, const struct mtp_level_3_mng *t_mng) abort(); } -static void check_prohib(const u_int8_t *data, const struct mtp_level_3_prohib *t_prohib) +static void check_prohib(const uint8_t *data, const struct mtp_level_3_prohib *t_prohib) { struct mtp_level_3_hdr *hdr = (struct mtp_level_3_hdr *) data; struct mtp_level_3_prohib *prohib = (struct mtp_level_3_prohib *) &hdr->data[0]; @@ -606,9 +606,9 @@ int main(int argc, char **argv) .mul_ind = 1, }; - u_int8_t data[] = { 0x03, 0xfe, 0x5b, 0x00, 0x01 }; + uint8_t data[] = { 0x03, 0xfe, 0x5b, 0x00, 0x01 }; if (memcmp(&prt, data, 5) != 0) { - u_int8_t *d = (u_int8_t *) &prt; + uint8_t *d = (uint8_t *) &prt; fprintf(stderr, "GOT: 0x%.2x 0x%.2x 0x%.2x 0x%.2x 0x%.2x\n", d[0], d[1], d[2], d[3], d[4]); abort(); |