diff options
author | John Baldwin <jhb@FreeBSD.org> | 2002-11-08 21:13:18 +0000 |
---|---|---|
committer | John Baldwin <jhb@FreeBSD.org> | 2002-11-08 21:13:18 +0000 |
commit | 8214d60e20e7fbbdfcdffe0e76cee7ffeddcbf26 (patch) | |
tree | 45b1bbe8e1167234791d9c2b8160f1dd432d0014 /sys/netgraph/ng_parse.c | |
parent | e068a8783538d807497bbcf107aa9c40e61d638b (diff) | |
download | src-8214d60e20e7fbbdfcdffe0e76cee7ffeddcbf26.tar.gz src-8214d60e20e7fbbdfcdffe0e76cee7ffeddcbf26.zip |
Use intptr_t to fix various sizeof(int) != sizeof(void *) warnings.
Notes
Notes:
svn path=/head/; revision=106665
Diffstat (limited to 'sys/netgraph/ng_parse.c')
-rw-r--r-- | sys/netgraph/ng_parse.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/sys/netgraph/ng_parse.c b/sys/netgraph/ng_parse.c index b1d335a5a607..cff5fcbfa6c3 100644 --- a/sys/netgraph/ng_parse.c +++ b/sys/netgraph/ng_parse.c @@ -362,7 +362,7 @@ ng_int8_unparse(const struct ng_parse_type *type, int8_t val; bcopy(data + *off, &val, sizeof(int8_t)); - switch ((int)type->info) { + switch ((intptr_t)type->info) { case INT_SIGNED: fmt = "%d"; fval = val; @@ -459,7 +459,7 @@ ng_int16_unparse(const struct ng_parse_type *type, int16_t val; bcopy(data + *off, &val, sizeof(int16_t)); - switch ((int)type->info) { + switch ((intptr_t)type->info) { case INT_SIGNED: fmt = "%d"; fval = val; @@ -556,7 +556,7 @@ ng_int32_unparse(const struct ng_parse_type *type, int32_t val; bcopy(data + *off, &val, sizeof(int32_t)); - switch ((int)type->info) { + switch ((intptr_t)type->info) { case INT_SIGNED: fmt = "%ld"; fval = val; @@ -652,7 +652,7 @@ ng_int64_unparse(const struct ng_parse_type *type, int64_t val; bcopy(data + *off, &val, sizeof(int64_t)); - switch ((int)type->info) { + switch ((intptr_t)type->info) { case INT_SIGNED: fmt = "%lld"; fval = val; |