From cad5364599eb5062d59e0c397ed638ddd61a8d5d Mon Sep 17 00:00:00 2001 From: Manuel Novoa III Date: Wed, 19 Mar 2003 09:13:01 +0000 Subject: Major coreutils update. --- archival/libunarchive/check_header_gzip.c | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'archival/libunarchive/check_header_gzip.c') diff --git a/archival/libunarchive/check_header_gzip.c b/archival/libunarchive/check_header_gzip.c index d661df7cc..13832c240 100644 --- a/archival/libunarchive/check_header_gzip.c +++ b/archival/libunarchive/check_header_gzip.c @@ -15,11 +15,11 @@ extern void check_header_gzip(int src_fd) } formated; } header; - xread_all(src_fd, header.raw, 8); + bb_xread_all(src_fd, header.raw, 8); /* Check the compression method */ if (header.formated.method != 8) { - error_msg_and_die("Unknown compression method %d", + bb_error_msg_and_die("Unknown compression method %d", header.formated.method); } @@ -27,10 +27,10 @@ extern void check_header_gzip(int src_fd) /* bit 2 set: extra field present */ unsigned char extra_short; - extra_short = xread_char(src_fd) + (xread_char(src_fd) << 8); + extra_short = bb_xread_char(src_fd) + (bb_xread_char(src_fd) << 8); while (extra_short > 0) { /* Ignore extra field */ - xread_char(src_fd); + bb_xread_char(src_fd); extra_short--; } } @@ -38,19 +38,19 @@ extern void check_header_gzip(int src_fd) /* Discard original name if any */ if (header.formated.flags & 0x08) { /* bit 3 set: original file name present */ - while(xread_char(src_fd) != 0); + while(bb_xread_char(src_fd) != 0); } /* Discard file comment if any */ if (header.formated.flags & 0x10) { /* bit 4 set: file comment present */ - while(xread_char(src_fd) != 0); + while(bb_xread_char(src_fd) != 0); } /* Read the header checksum */ if (header.formated.flags & 0x02) { - xread_char(src_fd); - xread_char(src_fd); + bb_xread_char(src_fd); + bb_xread_char(src_fd); } return; -- cgit v1.2.3