diff options
author | Bernhard Reutner-Fischer <rep.dot.nop@gmail.com> | 2006-09-11 16:01:40 +0000 |
---|---|---|
committer | Bernhard Reutner-Fischer <rep.dot.nop@gmail.com> | 2006-09-11 16:01:40 +0000 |
commit | 64d7e93081141cb6f1668436a5629a2304047f38 (patch) | |
tree | 5fee0b4e525aaab7163e2a06f4bc8584d70a7b34 /archival/gzip.c | |
parent | 57b56674a3933dff9dd3df47dbd9009c409181de (diff) | |
download | busybox-w32-64d7e93081141cb6f1668436a5629a2304047f38.tar.gz busybox-w32-64d7e93081141cb6f1668436a5629a2304047f38.tar.bz2 busybox-w32-64d7e93081141cb6f1668436a5629a2304047f38.zip |
- convert a few xopen3(,,0) into xopen(,). Also peruse the fact that xopen defaults to 0777 on it's own, so we don't need to xopen3(,,0777).
Saves a few bytes:
$ size busybox.old busybox text data bss dec hex filename
839676 8780 243592 1092048 10a9d0 busybox.old
839660 8780 243592 1092032 10a9c0 busybox
$ make CC=gcc-4.2-HEAD bloatcheck
function old new delta
static.vconfig_main 281 279 -2
static.rx_main 1076 1074 -2
static.mt_main 294 292 -2
static.gzip_main 753 751 -2
static.mkfs_minix_main 4034 4030 -4
static.unzip_main 1771 1766 -5
static.crontab_main 1513 1507 -6
------------------------------------------------------------------------------
(add/remove: 0/0 grow/shrink: 0/7 up/down: 0/-23) Total: -23 bytes
Diffstat (limited to 'archival/gzip.c')
-rw-r--r-- | archival/gzip.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/archival/gzip.c b/archival/gzip.c index ad2c24df1..7c18154ff 100644 --- a/archival/gzip.c +++ b/archival/gzip.c | |||
@@ -1206,7 +1206,7 @@ int gzip_main(int argc, char **argv) | |||
1206 | inFileNum = STDIN_FILENO; | 1206 | inFileNum = STDIN_FILENO; |
1207 | outFileNum = STDOUT_FILENO; | 1207 | outFileNum = STDOUT_FILENO; |
1208 | } else { | 1208 | } else { |
1209 | inFileNum = xopen3(argv[i], O_RDONLY, 0); | 1209 | inFileNum = xopen(argv[i], O_RDONLY); |
1210 | if (fstat(inFileNum, &statBuf) < 0) | 1210 | if (fstat(inFileNum, &statBuf) < 0) |
1211 | bb_perror_msg_and_die("%s", argv[i]); | 1211 | bb_perror_msg_and_die("%s", argv[i]); |
1212 | time_stamp = statBuf.st_ctime; | 1212 | time_stamp = statBuf.st_ctime; |