Skip to content

Commit

Permalink
editcap: clean up some comments for consistency.
Browse files Browse the repository at this point in the history
  • Loading branch information
guyharris authored and Wireshark GitLab Utility committed Jul 8, 2021
1 parent 9e29ec0 commit 95bee83
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions editcap.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 95bee83

Please sign in to comment.