diff options
author | vda <vda@69ca8d6d-28ef-0310-b511-8ec308f3f277> | 2006-10-12 19:29:44 +0000 |
---|---|---|
committer | vda <vda@69ca8d6d-28ef-0310-b511-8ec308f3f277> | 2006-10-12 19:29:44 +0000 |
commit | 6b56f335a77c453fc44157fe5a223c2bf54df5d9 (patch) | |
tree | f7f2113941a2dc0385080baa7656ead41f45f834 /editors | |
parent | d6327ac14f6040a081b55b34230acfb370ced3f8 (diff) | |
download | busybox-w32-6b56f335a77c453fc44157fe5a223c2bf54df5d9.tar.gz busybox-w32-6b56f335a77c453fc44157fe5a223c2bf54df5d9.tar.bz2 busybox-w32-6b56f335a77c453fc44157fe5a223c2bf54df5d9.zip |
small style fixes
git-svn-id: svn://busybox.net/trunk/busybox@16371 69ca8d6d-28ef-0310-b511-8ec308f3f277
Diffstat (limited to 'editors')
-rw-r--r-- | editors/patch.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/editors/patch.c b/editors/patch.c index 047de9e57..9336b275a 100644 --- a/editors/patch.c +++ b/editors/patch.c | |||
@@ -147,7 +147,7 @@ int patch_main(int argc, char **argv) | |||
147 | strcpy(backup_filename, new_filename); | 147 | strcpy(backup_filename, new_filename); |
148 | strcat(backup_filename, ".orig"); | 148 | strcat(backup_filename, ".orig"); |
149 | if (rename(new_filename, backup_filename) == -1) { | 149 | if (rename(new_filename, backup_filename) == -1) { |
150 | bb_perror_msg_and_die("Couldnt create file %s", | 150 | bb_perror_msg_and_die("cannot create file %s", |
151 | backup_filename); | 151 | backup_filename); |
152 | } | 152 | } |
153 | dst_stream = xfopen(new_filename, "w"); | 153 | dst_stream = xfopen(new_filename, "w"); |
@@ -256,10 +256,10 @@ int patch_main(int argc, char **argv) | |||
256 | if ((dest_cur_line == 0) || (dest_beg_line == 0)) { | 256 | if ((dest_cur_line == 0) || (dest_beg_line == 0)) { |
257 | /* The new patched file is empty, remove it */ | 257 | /* The new patched file is empty, remove it */ |
258 | if (unlink(new_filename) == -1) { | 258 | if (unlink(new_filename) == -1) { |
259 | bb_perror_msg_and_die("Couldnt remove file %s", new_filename); | 259 | bb_perror_msg_and_die("cannot remove file %s", new_filename); |
260 | } | 260 | } |
261 | if (unlink(original_filename) == -1) { | 261 | if (unlink(original_filename) == -1) { |
262 | bb_perror_msg_and_die("Couldnt remove original file %s", new_filename); | 262 | bb_perror_msg_and_die("cannot remove original file %s", new_filename); |
263 | } | 263 | } |
264 | } | 264 | } |
265 | } | 265 | } |