Skip to content

Commit 262e119

Browse files
committed
Use symmetrical quotation characters in error messages
Symmetrical quoting looks better. Thus s/`/'/ See '5.10 Quote Characters' in GNU Coding Standards: https://www.gnu.org/prep/standards/standards.html#Quote-Characters [skip ci]
1 parent 627a682 commit 262e119

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

CHANGES

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,7 @@ DayOfTheWeek, Month DD, YYYY / The Tcpdump Group
8080
User interface:
8181
Print the supported time stamp types (-J) to stdout instead of stderr.
8282
Print the list of data link types (-L) to stdout instead of stderr.
83+
Use symmetrical quotation characters in error messages.
8384
Source code:
8485
tcpdump: Fix a memory leak.
8586
child_cleanup: reap as many child processes as possible.

tcpdump.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1801,7 +1801,7 @@ main(int argc, char **argv)
18011801
if (nd_load_smi_module(optarg, ebuf, sizeof(ebuf)) == -1)
18021802
error("%s", ebuf);
18031803
} else {
1804-
(void)fprintf(stderr, "%s: ignoring option `-m %s' ",
1804+
(void)fprintf(stderr, "%s: ignoring option '-m %s' ",
18051805
program_name, optarg);
18061806
(void)fprintf(stderr, "(no libsmi support)\n");
18071807
}
@@ -1845,7 +1845,7 @@ main(int argc, char **argv)
18451845
else if (ascii_strcasecmp(optarg, "inout") == 0)
18461846
Qflag = PCAP_D_INOUT;
18471847
else
1848-
error("unknown capture direction `%s'", optarg);
1848+
error("unknown capture direction '%s'", optarg);
18491849
break;
18501850
#endif /* HAVE_PCAP_SETDIRECTION */
18511851

@@ -1913,7 +1913,7 @@ main(int argc, char **argv)
19131913
else if (ascii_strcasecmp(optarg, "quic") == 0)
19141914
ndo->ndo_packettype = PT_QUIC;
19151915
else
1916-
error("unknown packet type `%s'", optarg);
1916+
error("unknown packet type '%s'", optarg);
19171917
break;
19181918

19191919
case 'u':

0 commit comments

Comments
 (0)