aboutsummaryrefslogtreecommitdiff
path: root/editors
diff options
context:
space:
mode:
Diffstat (limited to 'editors')
-rw-r--r--editors/patch.c4
-rw-r--r--editors/vi.c2
2 files changed, 3 insertions, 3 deletions
diff --git a/editors/patch.c b/editors/patch.c
index a2d593d87..e0fb58f87 100644
--- a/editors/patch.c
+++ b/editors/patch.c
@@ -74,7 +74,7 @@ int patch_main(int argc ATTRIBUTE_UNUSED, char **argv)
74 int patch_level; 74 int patch_level;
75 int ret = 0; 75 int ret = 0;
76 76
77 xfunc_error_retval = 2; 77 xfunc_error_retval = 2;
78 { 78 {
79 const char *p = "-1"; 79 const char *p = "-1";
80 const char *i = "-"; /* compat */ 80 const char *i = "-"; /* compat */
@@ -114,7 +114,7 @@ int patch_main(int argc ATTRIBUTE_UNUSED, char **argv)
114 if (!patch_line || strncmp(patch_line, "+++ ", 4) != 0) 114 if (!patch_line || strncmp(patch_line, "+++ ", 4) != 0)
115 bb_error_msg_and_die("invalid patch"); 115 bb_error_msg_and_die("invalid patch");
116 new_filename = extract_filename_and_free_line(patch_line, patch_level); 116 new_filename = extract_filename_and_free_line(patch_line, patch_level);
117 117
118 /* Get access rights from the file to be patched, -1 file does not exist */ 118 /* Get access rights from the file to be patched, -1 file does not exist */
119 if (stat(new_filename, &saved_stat) != 0) { 119 if (stat(new_filename, &saved_stat) != 0) {
120 char *line_ptr; 120 char *line_ptr;
diff --git a/editors/vi.c b/editors/vi.c
index 65fb0265e..454cfcee4 100644
--- a/editors/vi.c
+++ b/editors/vi.c
@@ -419,7 +419,7 @@ int vi_main(int argc, char **argv)
419 /* fall through */ 419 /* fall through */
420 420
421 default: 421 default:
422 bb_show_usage(); 422 bb_show_usage();
423 return 1; 423 return 1;
424 } 424 }
425 } 425 }