diff options
author | Tim Kientzle <kientzle@acm.org> | 2013-12-07 14:56:38 -0800 |
---|---|---|
committer | Tim Kientzle <kientzle@acm.org> | 2013-12-07 14:56:38 -0800 |
commit | a5a9a6a19bfc013a72914c9c22c87bcfeed80ee9 (patch) | |
tree | c66d7ecbd0e16f7ececc4812e4401d8de1b62d24 /libarchive/archive_read_support_format_tar.c | |
parent | 6cf33c9307bbf5827df9500750e59a35b6f2d5d3 (diff) | |
download | libarchive-a5a9a6a19bfc013a72914c9c22c87bcfeed80ee9.tar.gz |
Fix tabs.
Diffstat (limited to 'libarchive/archive_read_support_format_tar.c')
-rw-r--r-- | libarchive/archive_read_support_format_tar.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/libarchive/archive_read_support_format_tar.c b/libarchive/archive_read_support_format_tar.c index c5b8fd99..8bd22c7e 100644 --- a/libarchive/archive_read_support_format_tar.c +++ b/libarchive/archive_read_support_format_tar.c @@ -2480,8 +2480,8 @@ tar_atol10(const char *p, size_t char_cnt) static int64_t tar_atol256(const char *_p, size_t char_cnt) { - uint64_t l; - const unsigned char *p = (const unsigned char *)_p; + uint64_t l; + const unsigned char *p = (const unsigned char *)_p; unsigned char c, neg; /* Extend 7-bit 2s-comp to 8-bit 2s-comp, decide sign. */ @@ -2489,11 +2489,11 @@ tar_atol256(const char *_p, size_t char_cnt) if (c & 0x40) { neg = 0xff; c |= 0x80; - l = ~0ULL; + l = ~0ULL; } else { neg = 0; c &= 0x7f; - l = 0; + l = 0; } /* If more than 8 bytes, check that we can ignore @@ -2511,13 +2511,13 @@ tar_atol256(const char *_p, size_t char_cnt) } /* Accumulate remaining bytes. */ - while (--char_cnt > 0) { - l = (l << 8) | c; + while (--char_cnt > 0) { + l = (l << 8) | c; c = *++p; - } + } l = (l << 8) | c; /* Return signed twos-complement value. */ - return (int64_t)(l); + return (int64_t)(l); } /* |