diff options
Diffstat (limited to 'ar.c')
-rw-r--r-- | ar.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -65,9 +65,9 @@ extern ar_headers_t get_headers(int srcFd) | |||
65 | 65 | ||
66 | /* check ar magic */ | 66 | /* check ar magic */ |
67 | if (full_read(srcFd, ar_magic, 8) != 8) | 67 | if (full_read(srcFd, ar_magic, 8) != 8) |
68 | error_msg_and_die("cannot read magic\n"); | 68 | error_msg_and_die("cannot read magic"); |
69 | if (strncmp(ar_magic,"!<arch>",7) != 0) | 69 | if (strncmp(ar_magic,"!<arch>",7) != 0) |
70 | error_msg_and_die("invalid magic\n"); | 70 | error_msg_and_die("invalid magic"); |
71 | 71 | ||
72 | while (full_read(srcFd, (char *) &raw_ar_header, 60)==60) { | 72 | while (full_read(srcFd, (char *) &raw_ar_header, 60)==60) { |
73 | /* check the end of header markers are valid */ | 73 | /* check the end of header markers are valid */ |
@@ -168,7 +168,7 @@ extern int ar_main(int argc, char **argv) | |||
168 | usage(ar_usage); | 168 | usage(ar_usage); |
169 | 169 | ||
170 | if ( (srcFd = open(argv[optind], O_RDONLY)) < 0) | 170 | if ( (srcFd = open(argv[optind], O_RDONLY)) < 0) |
171 | error_msg_and_die("Cannot read %s\n", argv[optind]); | 171 | error_msg_and_die("Cannot read %s", argv[optind]); |
172 | 172 | ||
173 | optind++; | 173 | optind++; |
174 | head = get_headers(srcFd); | 174 | head = get_headers(srcFd); |