diff options
author | Tim Riker <tim@rikers.org> | 2006-01-25 00:08:53 +0000 |
---|---|---|
committer | Tim Riker <tim@rikers.org> | 2006-01-25 00:08:53 +0000 |
commit | c1ef7bdd8d002ae0889efcf883d0e1b7faa938d4 (patch) | |
tree | 5f329b7d0c7f20ecced0dc7581a9ba6dc720d965 /archival/libunarchive | |
parent | f64ff682a3d58dbb627e760e6fe1ec21d9ccdf61 (diff) | |
download | busybox-w32-c1ef7bdd8d002ae0889efcf883d0e1b7faa938d4.tar.gz busybox-w32-c1ef7bdd8d002ae0889efcf883d0e1b7faa938d4.tar.bz2 busybox-w32-c1ef7bdd8d002ae0889efcf883d0e1b7faa938d4.zip |
just whitespace
Diffstat (limited to 'archival/libunarchive')
-rw-r--r-- | archival/libunarchive/decompress_bunzip2.c | 6 | ||||
-rw-r--r-- | archival/libunarchive/decompress_unlzma.c | 10 | ||||
-rw-r--r-- | archival/libunarchive/get_header_ar.c | 20 | ||||
-rw-r--r-- | archival/libunarchive/get_header_tar.c | 2 |
4 files changed, 19 insertions, 19 deletions
diff --git a/archival/libunarchive/decompress_bunzip2.c b/archival/libunarchive/decompress_bunzip2.c index 597ec85a3..af3731b15 100644 --- a/archival/libunarchive/decompress_bunzip2.c +++ b/archival/libunarchive/decompress_bunzip2.c | |||
@@ -51,9 +51,9 @@ | |||
51 | 51 | ||
52 | /* Constants for Huffman coding */ | 52 | /* Constants for Huffman coding */ |
53 | #define MAX_GROUPS 6 | 53 | #define MAX_GROUPS 6 |
54 | #define GROUP_SIZE 50 /* 64 would have been more efficient */ | 54 | #define GROUP_SIZE 50 /* 64 would have been more efficient */ |
55 | #define MAX_HUFCODE_BITS 20 /* Longest Huffman code allowed */ | 55 | #define MAX_HUFCODE_BITS 20 /* Longest Huffman code allowed */ |
56 | #define MAX_SYMBOLS 258 /* 256 literals + RUNA + RUNB */ | 56 | #define MAX_SYMBOLS 258 /* 256 literals + RUNA + RUNB */ |
57 | #define SYMBOL_RUNA 0 | 57 | #define SYMBOL_RUNA 0 |
58 | #define SYMBOL_RUNB 1 | 58 | #define SYMBOL_RUNB 1 |
59 | 59 | ||
diff --git a/archival/libunarchive/decompress_unlzma.c b/archival/libunarchive/decompress_unlzma.c index 977cb48d0..62811ddfc 100644 --- a/archival/libunarchive/decompress_unlzma.c +++ b/archival/libunarchive/decompress_unlzma.c | |||
@@ -50,9 +50,9 @@ typedef struct { | |||
50 | #define LZMA_LEN_CHOICE_2 (LZMA_LEN_CHOICE + 1) | 50 | #define LZMA_LEN_CHOICE_2 (LZMA_LEN_CHOICE + 1) |
51 | #define LZMA_LEN_LOW (LZMA_LEN_CHOICE_2 + 1) | 51 | #define LZMA_LEN_LOW (LZMA_LEN_CHOICE_2 + 1) |
52 | #define LZMA_LEN_MID (LZMA_LEN_LOW \ | 52 | #define LZMA_LEN_MID (LZMA_LEN_LOW \ |
53 | + (1 << (LZMA_NUM_POS_BITS_MAX + LZMA_LEN_NUM_LOW_BITS))) | 53 | + (1 << (LZMA_NUM_POS_BITS_MAX + LZMA_LEN_NUM_LOW_BITS))) |
54 | #define LZMA_LEN_HIGH (LZMA_LEN_MID \ | 54 | #define LZMA_LEN_HIGH (LZMA_LEN_MID \ |
55 | +(1 << (LZMA_NUM_POS_BITS_MAX + LZMA_LEN_NUM_MID_BITS))) | 55 | +(1 << (LZMA_NUM_POS_BITS_MAX + LZMA_LEN_NUM_MID_BITS))) |
56 | #define LZMA_NUM_LEN_PROBS (LZMA_LEN_HIGH + (1 << LZMA_LEN_NUM_HIGH_BITS)) | 56 | #define LZMA_NUM_LEN_PROBS (LZMA_LEN_HIGH + (1 << LZMA_LEN_NUM_HIGH_BITS)) |
57 | 57 | ||
58 | #define LZMA_NUM_STATES 12 | 58 | #define LZMA_NUM_STATES 12 |
@@ -76,11 +76,11 @@ typedef struct { | |||
76 | #define LZMA_IS_REP_G2 (LZMA_IS_REP_G1 + LZMA_NUM_STATES) | 76 | #define LZMA_IS_REP_G2 (LZMA_IS_REP_G1 + LZMA_NUM_STATES) |
77 | #define LZMA_IS_REP_0_LONG (LZMA_IS_REP_G2 + LZMA_NUM_STATES) | 77 | #define LZMA_IS_REP_0_LONG (LZMA_IS_REP_G2 + LZMA_NUM_STATES) |
78 | #define LZMA_POS_SLOT (LZMA_IS_REP_0_LONG \ | 78 | #define LZMA_POS_SLOT (LZMA_IS_REP_0_LONG \ |
79 | + (LZMA_NUM_STATES << LZMA_NUM_POS_BITS_MAX)) | 79 | + (LZMA_NUM_STATES << LZMA_NUM_POS_BITS_MAX)) |
80 | #define LZMA_SPEC_POS (LZMA_POS_SLOT \ | 80 | #define LZMA_SPEC_POS (LZMA_POS_SLOT \ |
81 | +(LZMA_NUM_LEN_TO_POS_STATES << LZMA_NUM_POS_SLOT_BITS)) | 81 | +(LZMA_NUM_LEN_TO_POS_STATES << LZMA_NUM_POS_SLOT_BITS)) |
82 | #define LZMA_ALIGN (LZMA_SPEC_POS \ | 82 | #define LZMA_ALIGN (LZMA_SPEC_POS \ |
83 | + LZMA_NUM_FULL_DISTANCES - LZMA_END_POS_MODEL_INDEX) | 83 | + LZMA_NUM_FULL_DISTANCES - LZMA_END_POS_MODEL_INDEX) |
84 | #define LZMA_LEN_CODER (LZMA_ALIGN + (1 << LZMA_NUM_ALIGN_BITS)) | 84 | #define LZMA_LEN_CODER (LZMA_ALIGN + (1 << LZMA_NUM_ALIGN_BITS)) |
85 | #define LZMA_REP_LEN_CODER (LZMA_LEN_CODER + LZMA_NUM_LEN_PROBS) | 85 | #define LZMA_REP_LEN_CODER (LZMA_LEN_CODER + LZMA_NUM_LEN_PROBS) |
86 | #define LZMA_LITERAL (LZMA_REP_LEN_CODER + LZMA_NUM_LEN_PROBS) | 86 | #define LZMA_LITERAL (LZMA_REP_LEN_CODER + LZMA_NUM_LEN_PROBS) |
diff --git a/archival/libunarchive/get_header_ar.c b/archival/libunarchive/get_header_ar.c index ebb6f8cbe..e3a71951f 100644 --- a/archival/libunarchive/get_header_ar.c +++ b/archival/libunarchive/get_header_ar.c | |||
@@ -26,15 +26,15 @@ extern char get_header_ar(archive_handle_t *archive_handle) | |||
26 | file_header_t *typed = archive_handle->file_header; | 26 | file_header_t *typed = archive_handle->file_header; |
27 | union { | 27 | union { |
28 | char raw[60]; | 28 | char raw[60]; |
29 | struct { | 29 | struct { |
30 | char name[16]; | 30 | char name[16]; |
31 | char date[12]; | 31 | char date[12]; |
32 | char uid[6]; | 32 | char uid[6]; |
33 | char gid[6]; | 33 | char gid[6]; |
34 | char mode[8]; | 34 | char mode[8]; |
35 | char size[10]; | 35 | char size[10]; |
36 | char magic[2]; | 36 | char magic[2]; |
37 | } formated; | 37 | } formated; |
38 | } ar; | 38 | } ar; |
39 | #ifdef CONFIG_FEATURE_AR_LONG_FILENAMES | 39 | #ifdef CONFIG_FEATURE_AR_LONG_FILENAMES |
40 | static char *ar_long_names; | 40 | static char *ar_long_names; |
@@ -102,7 +102,7 @@ extern char get_header_ar(archive_handle_t *archive_handle) | |||
102 | #endif | 102 | #endif |
103 | } else { | 103 | } else { |
104 | /* short filenames */ | 104 | /* short filenames */ |
105 | typed->name = bb_xstrndup(ar.formated.name, 16); | 105 | typed->name = bb_xstrndup(ar.formated.name, 16); |
106 | } | 106 | } |
107 | 107 | ||
108 | typed->name[strcspn(typed->name, " /")] = '\0'; | 108 | typed->name[strcspn(typed->name, " /")] = '\0'; |
diff --git a/archival/libunarchive/get_header_tar.c b/archival/libunarchive/get_header_tar.c index 659b75d9b..26dfad55f 100644 --- a/archival/libunarchive/get_header_tar.c +++ b/archival/libunarchive/get_header_tar.c | |||
@@ -20,7 +20,7 @@ | |||
20 | * References: | 20 | * References: |
21 | * GNU tar and star man pages, | 21 | * GNU tar and star man pages, |
22 | * Opengroup's ustar interchange format, | 22 | * Opengroup's ustar interchange format, |
23 | * http://www.opengroup.org/onlinepubs/007904975/utilities/pax.html | 23 | * http://www.opengroup.org/onlinepubs/007904975/utilities/pax.html |
24 | */ | 24 | */ |
25 | 25 | ||
26 | #include <stdio.h> | 26 | #include <stdio.h> |