diff options
| author | Ed Maste <emaste@FreeBSD.org> | 2016-02-10 19:39:36 +0000 |
|---|---|---|
| committer | Ed Maste <emaste@FreeBSD.org> | 2016-02-10 19:39:36 +0000 |
| commit | 888a18208d70e0395f1ba2a425a272996246174e (patch) | |
| tree | 3de9500b684e6cb0b1066dfbf0133793e385df71 /elfcopy/archive.c | |
| parent | 768a24a304ee84c17865b4348beacb61aa47af1b (diff) | |
Diffstat (limited to 'elfcopy/archive.c')
| -rw-r--r-- | elfcopy/archive.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/elfcopy/archive.c b/elfcopy/archive.c index 682a1df66dcc..97e2498a66ff 100644 --- a/elfcopy/archive.c +++ b/elfcopy/archive.c @@ -38,7 +38,7 @@ #include "elfcopy.h" -ELFTC_VCSID("$Id: archive.c 3174 2015-03-27 17:13:41Z emaste $"); +ELFTC_VCSID("$Id: archive.c 3287 2015-12-31 16:58:48Z emaste $"); #define _ARMAG_LEN 8 /* length of ar magic string */ #define _ARHDR_LEN 60 /* length of ar header */ @@ -382,7 +382,7 @@ ac_read_objs(struct elfcopy *ecp, int ifd) if (lseek(ifd, 0, SEEK_SET) == -1) err(EXIT_FAILURE, "lseek failed"); if ((a = archive_read_new()) == NULL) - errx(EXIT_FAILURE, "%s", archive_error_string(a)); + errx(EXIT_FAILURE, "archive_read_new failed"); archive_read_support_format_ar(a); AC(archive_read_open_fd(a, ifd, 10240)); for(;;) { @@ -443,7 +443,7 @@ ac_write_objs(struct elfcopy *ecp, int ofd) int nr; if ((a = archive_write_new()) == NULL) - errx(EXIT_FAILURE, "%s", archive_error_string(a)); + errx(EXIT_FAILURE, "archive_write_new failed"); archive_write_set_format_ar_svr4(a); AC(archive_write_open_fd(a, ofd)); |
