From 9d5f172875a9a0db5b5088a6a86496ec40dba45d Mon Sep 17 00:00:00 2001 From: Martin Kaiser Date: Thu, 6 Apr 2017 20:53:42 +0200 Subject: simplify the description of tvb_memeql() Make the description simpler than the code (hopefully). Change-Id: Iaede1a6eb18e25e379b719f9b66ecbef0c00ea63 Reviewed-on: https://code.wireshark.org/review/20956 Reviewed-by: Martin Kaiser Petri-Dish: Martin Kaiser Reviewed-by: Michael Mann --- epan/tvbuff.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'epan') diff --git a/epan/tvbuff.c b/epan/tvbuff.c index c3a6f4308f..af7a6e7bf0 100644 --- a/epan/tvbuff.c +++ b/epan/tvbuff.c @@ -2145,8 +2145,9 @@ tvb_strncaseeql(tvbuff_t *tvb, const gint offset, const gchar *str, const size_t } /* - * Call memcmp after checking if enough chars left, returning 0 if - * it returns 0 (meaning "equal") and -1 otherwise, otherwise return -1. + * Check that the tvbuff contains at least size bytes, starting at + * offset, and that those bytes are equal to str. Return 0 for success + * and -1 for error. This function does not throw an exception. */ gint tvb_memeql(tvbuff_t *tvb, const gint offset, const guint8 *str, size_t size) -- cgit v1.2.3