From 8481c438614427a9249aa20e31062e3bf7a86a89 Mon Sep 17 00:00:00 2001 From: Guy Harris Date: Sat, 5 Jul 2014 19:25:47 -0700 Subject: [PATCH] Fix more errors revealed by enum-to-integer conversion warnings. Change-Id: Ib28af874cbac0623ed94e7558f3711e9a1b03a2d Reviewed-on: https://code.wireshark.org/review/2874 Reviewed-by: Guy Harris --- wiretap/netmon.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/wiretap/netmon.c b/wiretap/netmon.c index 10a7114e8f..6dcd40a5cc 100644 --- a/wiretap/netmon.c +++ b/wiretap/netmon.c @@ -509,7 +509,7 @@ netmon_process_record(wtap *wth, FILE_T fh, struct wtap_pkthdr *phdr, if (*err == 0 && bytes_read != 0) { *err = WTAP_ERR_SHORT_READ; } - return FALSE; + return FAILURE; } switch (netmon->version_major) { @@ -532,7 +532,7 @@ netmon_process_record(wtap *wth, FILE_T fh, struct wtap_pkthdr *phdr, *err = WTAP_ERR_BAD_FILE; *err_info = g_strdup_printf("netmon: File has %u-byte packet, bigger than maximum of %u", packet_size, WTAP_MAX_PACKET_SIZE); - return FALSE; + return FAILURE; } phdr->rec_type = REC_TYPE_PACKET; @@ -555,11 +555,11 @@ netmon_process_record(wtap *wth, FILE_T fh, struct wtap_pkthdr *phdr, *err = WTAP_ERR_BAD_FILE; *err_info = g_strdup_printf("netmon: ATM file has a %u-byte packet, too small to have even an ATM pseudo-header", packet_size); - return FALSE; + return FAILURE; } if (!netmon_read_atm_pseudoheader(fh, &phdr->pseudo_header, err, err_info)) - return FALSE; /* Read error */ + return FAILURE; /* Read error */ /* * Don't count the pseudo-header as part of the packet. @@ -649,7 +649,7 @@ netmon_process_record(wtap *wth, FILE_T fh, struct wtap_pkthdr *phdr, * Read the packet data. */ if (!wtap_read_packet_bytes(fh, buf, phdr->caplen, err, err_info)) - return FALSE; + return FAILURE; /* * For version 2.1 and later, there's additional information