diff options
author | Denis Vlasenko <vda.linux@googlemail.com> | 2006-11-27 16:49:31 +0000 |
---|---|---|
committer | Denis Vlasenko <vda.linux@googlemail.com> | 2006-11-27 16:49:31 +0000 |
commit | 079f8afa0a16112cbaf7012c82b38b7358b82141 (patch) | |
tree | 0d8cba8e45b1a8b975e0b8c7a8377703ab5547a6 /editors/patch.c | |
parent | 10d0d4eec7e3a292917f43f72afae20341d9ba11 (diff) | |
download | busybox-w32-079f8afa0a16112cbaf7012c82b38b7358b82141.tar.gz busybox-w32-079f8afa0a16112cbaf7012c82b38b7358b82141.tar.bz2 busybox-w32-079f8afa0a16112cbaf7012c82b38b7358b82141.zip |
style cleanup: return(a) -> return a, part 1
Diffstat (limited to 'editors/patch.c')
-rw-r--r-- | editors/patch.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/editors/patch.c b/editors/patch.c index 4ddcd004d..f11f8a1a2 100644 --- a/editors/patch.c +++ b/editors/patch.c | |||
@@ -43,7 +43,7 @@ static unsigned int copy_lines(FILE *src_stream, FILE *dest_stream, const unsign | |||
43 | 43 | ||
44 | i++; | 44 | i++; |
45 | } | 45 | } |
46 | return(i); | 46 | return i; |
47 | } | 47 | } |
48 | 48 | ||
49 | /* If patch_level is -1 it will remove all directory names | 49 | /* If patch_level is -1 it will remove all directory names |
@@ -67,13 +67,13 @@ static char *extract_filename(char *line, int patch_level) | |||
67 | filename_start_ptr = temp + 1; | 67 | filename_start_ptr = temp + 1; |
68 | } | 68 | } |
69 | 69 | ||
70 | return(xstrdup(filename_start_ptr)); | 70 | return xstrdup(filename_start_ptr); |
71 | } | 71 | } |
72 | 72 | ||
73 | static int file_doesnt_exist(const char *filename) | 73 | static int file_doesnt_exist(const char *filename) |
74 | { | 74 | { |
75 | struct stat statbuf; | 75 | struct stat statbuf; |
76 | return(stat(filename, &statbuf)); | 76 | return stat(filename, &statbuf); |
77 | } | 77 | } |
78 | 78 | ||
79 | int patch_main(int argc, char **argv) | 79 | int patch_main(int argc, char **argv) |
@@ -269,5 +269,5 @@ int patch_main(int argc, char **argv) | |||
269 | * 1 = Some hunks failed | 269 | * 1 = Some hunks failed |
270 | * 2 = More serious problems | 270 | * 2 = More serious problems |
271 | */ | 271 | */ |
272 | return(ret); | 272 | return ret; |
273 | } | 273 | } |