aboutsummaryrefslogtreecommitdiffstats
path: root/wiretap/wtap_opttypes.c
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2016-07-14 18:28:00 -0700
committerGuy Harris <guy@alum.mit.edu>2016-07-15 01:33:18 +0000
commit8428d3a927e46d3be13a8d52d04b7697b0b99b80 (patch)
tree2dc7129675061efe4af9e11d335055829a0a7864 /wiretap/wtap_opttypes.c
parentf8b738016ee58fefc6f96ed1d6e3ef4044f6e866 (diff)
Squelch compiler warnings.
Cast some numerical values to wtap_block_type_t. Change-Id: I56651c62045880638175c39174341feffb4b1068 Reviewed-on: https://code.wireshark.org/review/16451 Reviewed-by: Guy Harris <guy@alum.mit.edu>
Diffstat (limited to 'wiretap/wtap_opttypes.c')
-rw-r--r--wiretap/wtap_opttypes.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/wiretap/wtap_opttypes.c b/wiretap/wtap_opttypes.c
index c5b4f62262..27b0fe28ed 100644
--- a/wiretap/wtap_opttypes.c
+++ b/wiretap/wtap_opttypes.c
@@ -127,7 +127,7 @@ int wtap_opttype_register_custom_block_type(const char* name, const char* descri
/* This shouldn't happen, so flag it for fixing */
g_assert(num_custom_blocks < MAX_WTAP_BLOCK_CUSTOM);
- block_type = WTAP_BLOCK_END_OF_LIST+num_custom_blocks;
+ block_type = (wtap_block_type_t)(WTAP_BLOCK_END_OF_LIST+num_custom_blocks);
custom_blocktype_list[num_custom_blocks].name = name;
custom_blocktype_list[num_custom_blocks].description = description;
@@ -191,7 +191,7 @@ wtap_block_t wtap_block_create(wtap_block_type_t block_type)
{
wtap_block_t block;
- if (block_type >= (WTAP_BLOCK_END_OF_LIST+num_custom_blocks))
+ if (block_type >= (wtap_block_type_t)(WTAP_BLOCK_END_OF_LIST+num_custom_blocks))
return NULL;
block = g_new(struct wtap_block, 1);