]> The Tcpdump Group git mirrors - tcpdump/commitdiff
Use symmetrical quotation characters in error messages
authorFrancois-Xavier Le Bail <[email protected]>
Thu, 9 Nov 2023 18:41:22 +0000 (19:41 +0100)
committerfxlb <[email protected]>
Thu, 16 Nov 2023 13:59:09 +0000 (13:59 +0000)
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]

CHANGES
tcpdump.c

diff --git a/CHANGES b/CHANGES
index 1e21464348422205f93c59475d66fcee87704b80..117366db602cfab6436e2251e3c6e80db699f147 100644 (file)
--- a/CHANGES
+++ b/CHANGES
@@ -80,6 +80,7 @@ DayOfTheWeek, Month DD, YYYY / The Tcpdump Group
     User interface:
       Print the supported time stamp types (-J) to stdout instead of stderr.
       Print the list of data link types (-L) to stdout instead of stderr.
+      Use symmetrical quotation characters in error messages.
     Source code:
       tcpdump: Fix a memory leak.
       child_cleanup: reap as many child processes as possible.
index 7731ea0e39a05d4d67b77b348c0278f9569ac48d..a7a97fffef1bc2b6b597ed5e428c68a3c2a01f8f 100644 (file)
--- a/tcpdump.c
+++ b/tcpdump.c
@@ -1801,7 +1801,7 @@ main(int argc, char **argv)
                                if (nd_load_smi_module(optarg, ebuf, sizeof(ebuf)) == -1)
                                        error("%s", ebuf);
                        } else {
-                               (void)fprintf(stderr, "%s: ignoring option `-m %s' ",
+                               (void)fprintf(stderr, "%s: ignoring option '-m %s' ",
                                              program_name, optarg);
                                (void)fprintf(stderr, "(no libsmi support)\n");
                        }
@@ -1845,7 +1845,7 @@ main(int argc, char **argv)
                        else if (ascii_strcasecmp(optarg, "inout") == 0)
                                Qflag = PCAP_D_INOUT;
                        else
-                               error("unknown capture direction `%s'", optarg);
+                               error("unknown capture direction '%s'", optarg);
                        break;
 #endif /* HAVE_PCAP_SETDIRECTION */
 
@@ -1913,7 +1913,7 @@ main(int argc, char **argv)
                        else if (ascii_strcasecmp(optarg, "quic") == 0)
                                ndo->ndo_packettype = PT_QUIC;
                        else
-                               error("unknown packet type `%s'", optarg);
+                               error("unknown packet type '%s'", optarg);
                        break;
 
                case 'u':