aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorbug1 <bug1@69ca8d6d-28ef-0310-b511-8ec308f3f277>2003-03-30 09:38:40 +0000
committerbug1 <bug1@69ca8d6d-28ef-0310-b511-8ec308f3f277>2003-03-30 09:38:40 +0000
commit96ab5d453a642befcb2dbad8b0e73f844d271c86 (patch)
tree12eb04522f17b817f0a068782c7a567cfba62522
parentbe5e784027d2c1dcad575b5e368f591926144824 (diff)
downloadbusybox-w32-96ab5d453a642befcb2dbad8b0e73f844d271c86.tar.gz
busybox-w32-96ab5d453a642befcb2dbad8b0e73f844d271c86.tar.bz2
busybox-w32-96ab5d453a642befcb2dbad8b0e73f844d271c86.zip
Group common string
git-svn-id: svn://busybox.net/trunk/busybox@6771 69ca8d6d-28ef-0310-b511-8ec308f3f277
-rw-r--r--editors/sed.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/editors/sed.c b/editors/sed.c
index 13155a97e..c03924917 100644
--- a/editors/sed.c
+++ b/editors/sed.c
@@ -65,7 +65,7 @@ extern char *optarg; /* ditto */
65 65
66/* options */ 66/* options */
67static int be_quiet = 0; 67static int be_quiet = 0;
68 68static const char bad_format_in_subst[] = "bad format in substitution expression";
69 69
70typedef struct sed_cmd_s { 70typedef struct sed_cmd_s {
71 /* Order by alignment requirements */ 71 /* Order by alignment requirements */
@@ -190,7 +190,7 @@ static int parse_regex_delim(const char *cmdstr, char **match, char **replace)
190 /* verify that the 's' is followed by something. That something 190 /* verify that the 's' is followed by something. That something
191 * (typically a 'slash') is now our regexp delimiter... */ 191 * (typically a 'slash') is now our regexp delimiter... */
192 if (*cmdstr == '\0') 192 if (*cmdstr == '\0')
193 bb_error_msg_and_die("bad format in substitution expression"); 193 bb_error_msg_and_die(bad_format_in_subst);
194 else 194 else
195 delimiter = *cmdstr_ptr; 195 delimiter = *cmdstr_ptr;
196 196
@@ -199,7 +199,7 @@ static int parse_regex_delim(const char *cmdstr, char **match, char **replace)
199 /* save the match string */ 199 /* save the match string */
200 idx = index_of_next_unescaped_regexp_delim(delimiter, cmdstr_ptr); 200 idx = index_of_next_unescaped_regexp_delim(delimiter, cmdstr_ptr);
201 if (idx == -1) { 201 if (idx == -1) {
202 bb_error_msg_and_die("bad format in substitution expression"); 202 bb_error_msg_and_die(bad_format_in_subst);
203 } 203 }
204 *match = bb_xstrndup(cmdstr_ptr, idx); 204 *match = bb_xstrndup(cmdstr_ptr, idx);
205 205
@@ -207,7 +207,7 @@ static int parse_regex_delim(const char *cmdstr, char **match, char **replace)
207 cmdstr_ptr += idx + 1; 207 cmdstr_ptr += idx + 1;
208 idx = index_of_next_unescaped_regexp_delim(delimiter, cmdstr_ptr); 208 idx = index_of_next_unescaped_regexp_delim(delimiter, cmdstr_ptr);
209 if (idx == -1) { 209 if (idx == -1) {
210 bb_error_msg_and_die("bad format in substitution expression"); 210 bb_error_msg_and_die(bad_format_in_subst);
211 } 211 }
212 *replace = bb_xstrndup(cmdstr_ptr, idx); 212 *replace = bb_xstrndup(cmdstr_ptr, idx);
213 213