From 3f101f2b3f58cd1a0a1f9658c65a4e1d76a452e3 Mon Sep 17 00:00:00 2001 From: Guy Harris Date: Tue, 7 Oct 2014 00:30:35 -0700 Subject: [PATCH] Fix a comment, clean up some whitespace. Change-Id: I5d3d518eee2d61dd896b44c2a61d66057f3c2f7f Reviewed-on: https://code.wireshark.org/review/4516 Reviewed-by: Guy Harris --- wiretap/erf.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/wiretap/erf.c b/wiretap/erf.c index f8c61546db..cfad9d0a88 100644 --- a/wiretap/erf.c +++ b/wiretap/erf.c @@ -121,7 +121,7 @@ extern int erf_open(wtap *wth, int *err, gchar **err_info) if (!wtap_read_bytes_or_eof(wth->fh,&header,sizeof(header),err,err_info)) { if (*err == 0) { - /* EOF - all records have been successfully checked */ + /* EOF - all records have been successfully checked, accept the file */ break; } if (*err == WTAP_ERR_SHORT_READ) { @@ -412,7 +412,7 @@ static gboolean erf_read_header(FILE_T fh, type = erf_header->type; while (type & 0x80){ if (!wtap_read_bytes(fh, &erf_exhdr, sizeof(erf_exhdr), - err, err_info)) + err, err_info)) return FALSE; if (bytes_read != NULL) *bytes_read += (guint32)sizeof(erf_exhdr); -- 2.34.1