diff options
author | Denis Vlasenko | 2006-11-27 16:49:55 +0000 |
---|---|---|
committer | Denis Vlasenko | 2006-11-27 16:49:55 +0000 |
commit | d9e15f206840219bb0f39c912a42fdcf8cbcaed6 (patch) | |
tree | ffdef7f5ab4a33038d0a62c9355b48f362aa463e /libbb/dump.c | |
parent | 079f8afa0a16112cbaf7012c82b38b7358b82141 (diff) | |
download | busybox-d9e15f206840219bb0f39c912a42fdcf8cbcaed6.zip busybox-d9e15f206840219bb0f39c912a42fdcf8cbcaed6.tar.gz |
style cleanup: return(a) -> return a, part 2
Diffstat (limited to 'libbb/dump.c')
-rw-r--r-- | libbb/dump.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/libbb/dump.c b/libbb/dump.c index 4e4c2e1..1071089 100644 --- a/libbb/dump.c +++ b/libbb/dump.c @@ -74,7 +74,7 @@ int bb_dump_size(FS * fs) } cur_size += bcnt * fu->reps; } - return (cur_size); + return cur_size; } static void rewrite(FS * fs) @@ -374,17 +374,17 @@ static unsigned char *get(void) */ if (!bb_dump_length || (ateof && !next((char **) NULL))) { if (need == bb_dump_blocksize) { - return ((unsigned char *) NULL); + return NULL; } if (bb_dump_vflag != ALL && !memcmp(curp, savp, nread)) { if (bb_dump_vflag != DUP) { - printf("*\n"); + puts("*"); } - return ((unsigned char *) NULL); + return NULL; } memset((char *) curp + nread, 0, need); eaddress = address + nread; - return (curp); + return curp; } n = fread((char *) curp + nread, sizeof(unsigned char), bb_dump_length == -1 ? need : MIN(bb_dump_length, need), stdin); @@ -405,10 +405,10 @@ static unsigned char *get(void) if (bb_dump_vflag == DUP || bb_dump_vflag == FIRST) { bb_dump_vflag = WAIT; } - return (curp); + return curp; } if (bb_dump_vflag == WAIT) { - printf("*\n"); + puts("*"); } bb_dump_vflag = DUP; address = savaddress += bb_dump_blocksize; @@ -665,7 +665,7 @@ int bb_dump_dump(char **argv) next(argv); display(); - return (exitval); + return exitval; } void bb_dump_add(const char *fmt) |