diff options
Diffstat (limited to 'archival/lzop.c')
-rw-r--r-- | archival/lzop.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/archival/lzop.c b/archival/lzop.c index a5fc01941..202de4d03 100644 --- a/archival/lzop.c +++ b/archival/lzop.c | |||
@@ -71,6 +71,7 @@ | |||
71 | //usage: "\n -F Don't store or verify checksum" | 71 | //usage: "\n -F Don't store or verify checksum" |
72 | 72 | ||
73 | #include "libbb.h" | 73 | #include "libbb.h" |
74 | #include "common_bufsiz.h" | ||
74 | #include "bb_archive.h" | 75 | #include "bb_archive.h" |
75 | #include "liblzo_interface.h" | 76 | #include "liblzo_interface.h" |
76 | 77 | ||
@@ -443,8 +444,8 @@ struct globals { | |||
443 | chksum_t chksum_in; | 444 | chksum_t chksum_in; |
444 | chksum_t chksum_out; | 445 | chksum_t chksum_out; |
445 | } FIX_ALIASING; | 446 | } FIX_ALIASING; |
446 | #define G (*(struct globals*)&bb_common_bufsiz1) | 447 | #define G (*(struct globals*)bb_common_bufsiz1) |
447 | #define INIT_G() do { } while (0) | 448 | #define INIT_G() do { setup_common_bufsiz(); } while (0) |
448 | //#define G (*ptr_to_globals) | 449 | //#define G (*ptr_to_globals) |
449 | //#define INIT_G() do { | 450 | //#define INIT_G() do { |
450 | // SET_PTR_TO_GLOBALS(xzalloc(sizeof(G))); | 451 | // SET_PTR_TO_GLOBALS(xzalloc(sizeof(G))); |
@@ -895,7 +896,7 @@ static NOINLINE int lzo_decompress(const header_t *h) | |||
895 | * chksum_out | 896 | * chksum_out |
896 | * The rest is identical. | 897 | * The rest is identical. |
897 | */ | 898 | */ |
898 | static const unsigned char lzop_magic[9] = { | 899 | static const unsigned char lzop_magic[9] ALIGN1 = { |
899 | 0x89, 0x4c, 0x5a, 0x4f, 0x00, 0x0d, 0x0a, 0x1a, 0x0a | 900 | 0x89, 0x4c, 0x5a, 0x4f, 0x00, 0x0d, 0x0a, 0x1a, 0x0a |
900 | }; | 901 | }; |
901 | 902 | ||