Skip to content

Commit 67e70dc

Browse files
committed
proto: clean up comments.
Say "attempt to XXX", as the attempt might not succeed. Fix a copied-and-pasted comment to reflect what proto_is_frame_protocol() does. Change-Id: Ia16a98064b87001f019fda43f2db2970a89e355e Reviewed-on: https://code.wireshark.org/review/37486 Reviewed-by: Guy Harris <[email protected]>
1 parent 5954e55 commit 67e70dc

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

epan/proto.c

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7461,7 +7461,7 @@ proto_get_frame_protocols(const wmem_list_t *layers, gboolean *is_ip,
74617461
const char *proto_name;
74627462

74637463
/* Walk the list of a available protocols in the packet and
7464-
find "major" ones. */
7464+
attempt to find "major" ones. */
74657465
/* It might make more sense to assemble and return a bitfield. */
74667466
while (protos != NULL)
74677467
{
@@ -7497,8 +7497,7 @@ proto_is_frame_protocol(const wmem_list_t *layers, const char* proto_name)
74977497
const char *name;
74987498

74997499
/* Walk the list of a available protocols in the packet and
7500-
find "major" ones. */
7501-
/* It might make more sense to assemble and return a bitfield. */
7500+
attempt to find the specified protocol. */
75027501
while (protos != NULL)
75037502
{
75047503
proto_id = GPOINTER_TO_INT(wmem_list_frame_data(protos));

0 commit comments

Comments
 (0)