diff options
Diffstat (limited to 'archival/libunarchive/get_header_cpio.c')
-rw-r--r-- | archival/libunarchive/get_header_cpio.c | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/archival/libunarchive/get_header_cpio.c b/archival/libunarchive/get_header_cpio.c index 4ed18c68f..96be4b5ac 100644 --- a/archival/libunarchive/get_header_cpio.c +++ b/archival/libunarchive/get_header_cpio.c | |||
@@ -19,9 +19,6 @@ typedef struct hardlinks_s { | |||
19 | 19 | ||
20 | char FAST_FUNC get_header_cpio(archive_handle_t *archive_handle) | 20 | char FAST_FUNC get_header_cpio(archive_handle_t *archive_handle) |
21 | { | 21 | { |
22 | static hardlinks_t *saved_hardlinks = NULL; | ||
23 | static hardlinks_t *saved_hardlinks_created = NULL; | ||
24 | |||
25 | file_header_t *file_header = archive_handle->file_header; | 22 | file_header_t *file_header = archive_handle->file_header; |
26 | char cpio_header[110]; | 23 | char cpio_header[110]; |
27 | char dummy[16]; | 24 | char dummy[16]; |
@@ -29,6 +26,14 @@ char FAST_FUNC get_header_cpio(archive_handle_t *archive_handle) | |||
29 | int major, minor, nlink, mode, inode; | 26 | int major, minor, nlink, mode, inode; |
30 | unsigned size, uid, gid, mtime; | 27 | unsigned size, uid, gid, mtime; |
31 | 28 | ||
29 | #define saved_hardlinks (*(hardlinks_t **)(&archive_handle->ah_priv[0])) | ||
30 | #define saved_hardlinks_created (*(hardlinks_t **)(&archive_handle->ah_priv[1])) | ||
31 | // if (!archive_handle->ah_priv_inited) { | ||
32 | // archive_handle->ah_priv_inited = 1; | ||
33 | // saved_hardlinks = NULL; | ||
34 | // saved_hardlinks_created = NULL; | ||
35 | // } | ||
36 | |||
32 | /* There can be padding before archive header */ | 37 | /* There can be padding before archive header */ |
33 | data_align(archive_handle, 4); | 38 | data_align(archive_handle, 4); |
34 | 39 | ||