diff options
author | Jim Meyering <meyering@fb.com> | 2023-01-01 17:38:09 -0800 |
---|---|---|
committer | Jim Meyering <meyering@fb.com> | 2023-01-01 17:38:09 -0800 |
commit | 3d75b4a278df8532c8b51e85b6774099fb60a38e (patch) | |
tree | 2a6ddd087feb85c8a327c93847c8d5a16f134116 | |
parent | f6df64598f9af4be7beb8212d244df6d97cae67b (diff) | |
download | sed-3d75b4a278df8532c8b51e85b6774099fb60a38e.tar.gz |
maint: reword to avoid a too-long-line warning
* sed/compile.c (compile_program): Improve diagnostic wording
that also happens to shorten the line so it's length is < 80.
-rw-r--r-- | sed/compile.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sed/compile.c b/sed/compile.c index 2002d49..99b2cf1 100644 --- a/sed/compile.c +++ b/sed/compile.c @@ -1219,7 +1219,7 @@ compile_program (struct vector *vector) for (i = 0; i < src_char_num; i++) { if (idx >= dest_len) - bad_prog ("strings for `y' command are different lengths"); + bad_prog ("`y' command strings have different lengths"); /* Set the i-th source character. */ trans_pairs[2 * i] = XNMALLOC (src_lens[i] + 1, char); @@ -1243,7 +1243,7 @@ compile_program (struct vector *vector) } trans_pairs[2 * i] = NULL; if (idx != dest_len) - bad_prog ("strings for `y' command are different lengths"); + bad_prog ("`y' command strings have different lengths"); IF_LINT (free (src_lens)); } @@ -1254,7 +1254,7 @@ compile_program (struct vector *vector) unsigned char *ustring = (unsigned char *)src_buf; if (len != dest_len) - bad_prog ("strings for `y' command are different lengths"); + bad_prog ("`y' command strings have different lengths"); for (len = 0; len < YMAP_LENGTH; len++) translate[len] = len; |