diff options
author | Guy Harris <gharris@sonic.net> | 2020-06-16 01:32:41 -0700 |
---|---|---|
committer | Guy Harris <gharris@sonic.net> | 2020-06-16 08:35:01 +0000 |
commit | 16fdb91e99203b9bd4dd237607455fb1f5b8aa8d (patch) | |
tree | a20d2cd0be5fd30cbe3120c7cd17f84eb7ae8b32 | |
parent | 629a821176e8b8e0427f89e09d1ba655649d1cde (diff) | |
download | wireshark-16fdb91e99203b9bd4dd237607455fb1f5b8aa8d.tar.gz wireshark-16fdb91e99203b9bd4dd237607455fb1f5b8aa8d.tar.bz2 wireshark-16fdb91e99203b9bd4dd237607455fb1f5b8aa8d.zip |
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 <gharris@sonic.net>
(cherry picked from commit 67e70dcad2dc219085ea044752fde0d4bce991a4)
Reviewed-on: https://code.wireshark.org/review/37489
-rw-r--r-- | epan/proto.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/epan/proto.c b/epan/proto.c index 9513215748..f1fcdd2b9f 100644 --- a/epan/proto.c +++ b/epan/proto.c @@ -6858,7 +6858,7 @@ proto_get_frame_protocols(const wmem_list_t *layers, gboolean *is_ip, const char *proto_name; /* Walk the list of a available protocols in the packet and - find "major" ones. */ + attempt to find "major" ones. */ /* It might make more sense to assemble and return a bitfield. */ while (protos != NULL) { @@ -6894,8 +6894,7 @@ proto_is_frame_protocol(const wmem_list_t *layers, const char* proto_name) const char *name; /* Walk the list of a available protocols in the packet and - find "major" ones. */ - /* It might make more sense to assemble and return a bitfield. */ + attempt to find the specified protocol. */ while (protos != NULL) { proto_id = GPOINTER_TO_INT(wmem_list_frame_data(protos)); |