diff options
author | Ed Maste <emaste@FreeBSD.org> | 2021-08-04 13:54:17 +0000 |
---|---|---|
committer | Ed Maste <emaste@FreeBSD.org> | 2021-08-11 23:12:46 +0000 |
commit | d20e9e02db3dde383c3de1ce8cec3a8c35b3eee6 (patch) | |
tree | 61d4296e25814416aa71c0e24ed3de42d6388a2e /usr.bin/ar/util.c | |
parent | ee6dc333e1a1af08afa3d14b83e963e4cf90b77b (diff) | |
download | src-d20e9e02db3dde383c3de1ce8cec3a8c35b3eee6.tar.gz src-d20e9e02db3dde383c3de1ce8cec3a8c35b3eee6.zip |
ar: diff reduction against ELF Tool Chain
- Drop exit status from bsdar_errc. ELF Tool Chain always returns
EXIT_FAILURE in bsdar_errc.
- Remove ar_mode_* wrappers and call ar_read_archive / ar_write_archive
directly.
Obtained from: ELF Tool Chain
Reviewed by: markj
Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D31496
Diffstat (limited to 'usr.bin/ar/util.c')
-rw-r--r-- | usr.bin/ar/util.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/ar/util.c b/usr.bin/ar/util.c index 1823c5eba84a..b130d6195e47 100644 --- a/usr.bin/ar/util.c +++ b/usr.bin/ar/util.c @@ -77,12 +77,12 @@ bsdar_verrc(struct bsdar *bsdar, int code, const char *fmt, va_list ap) } void -bsdar_errc(struct bsdar *bsdar, int eval, int code, const char *fmt, ...) +bsdar_errc(struct bsdar *bsdar, int code, const char *fmt, ...) { va_list ap; va_start(ap, fmt); bsdar_verrc(bsdar, code, fmt, ap); va_end(ap); - exit(eval); + exit(EXIT_FAILURE); } |