editcap: clean up some comments for consistency.

This commit is contained in:
Guy Harris 2021-07-08 02:10:31 -07:00 committed by Wireshark GitLab Utility
parent 9e29ec0940
commit 95bee83fbc
1 changed files with 2 additions and 2 deletions

View File

@ -1972,14 +1972,14 @@ main(int argc, char *argv[])
if (snaplen != 0) {
/* Limit capture length to snaplen */
if (rec->rec_header.packet_header.caplen > snaplen) {
/* Copy and change rather than modify returned wtap_rec */
/* Copy and change rather than modify returned rec */
temp_rec = *rec;
temp_rec.rec_header.packet_header.caplen = snaplen;
rec = &temp_rec;
}
/* If -L, also set reported length to snaplen */
if (adjlen && rec->rec_header.packet_header.len > snaplen) {
/* Copy and change rather than modify returned phdr */
/* Copy and change rather than modify returned rec */
temp_rec = *rec;
temp_rec.rec_header.packet_header.len = snaplen;
rec = &temp_rec;