aboutsummaryrefslogtreecommitdiffstats
path: root/epan/tvbuff.c
diff options
context:
space:
mode:
authorMartin Kaiser <wireshark@kaiser.cx>2017-04-06 20:53:42 +0200
committerMichael Mann <mmann78@netscape.net>2017-04-07 01:28:47 +0000
commit9d5f172875a9a0db5b5088a6a86496ec40dba45d (patch)
treeb6f3680aaf17651d54fa1eedeb1d769212e634b5 /epan/tvbuff.c
parentae9efa2bff12b88601ab50d93255821cc47fc8c3 (diff)
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 <wireshark@kaiser.cx> Petri-Dish: Martin Kaiser <wireshark@kaiser.cx> Reviewed-by: Michael Mann <mmann78@netscape.net>
Diffstat (limited to 'epan/tvbuff.c')
-rw-r--r--epan/tvbuff.c5
1 files changed, 3 insertions, 2 deletions
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)