diff options
author | Glenn L McGrath <bug1@ihug.co.nz> | 2002-08-22 13:25:12 +0000 |
---|---|---|
committer | Glenn L McGrath <bug1@ihug.co.nz> | 2002-08-22 13:25:12 +0000 |
commit | 4176972db5a65af78d13fed97ab84bf4fceaee2c (patch) | |
tree | c036d14d807a04321dcb8b104483023fcba430ca | |
parent | d827e8b665d808aab809e3b4a89e539f1c1d94f4 (diff) | |
download | busybox-w32-4176972db5a65af78d13fed97ab84bf4fceaee2c.tar.gz busybox-w32-4176972db5a65af78d13fed97ab84bf4fceaee2c.tar.bz2 busybox-w32-4176972db5a65af78d13fed97ab84bf4fceaee2c.zip |
Run through indent, use /* */ style comments
-rw-r--r-- | include/unarchive.h | 27 |
1 files changed, 15 insertions, 12 deletions
diff --git a/include/unarchive.h b/include/unarchive.h index eada1c337..ffddc89f4 100644 --- a/include/unarchive.h +++ b/include/unarchive.h | |||
@@ -1,5 +1,5 @@ | |||
1 | #include <stdio.h> // for FILE | 1 | #include <stdio.h> /* for FILE */ |
2 | #include <unistd.h> // for off_t | 2 | #include <unistd.h> /* for off_t */ |
3 | 3 | ||
4 | enum extract_functions_e { | 4 | enum extract_functions_e { |
5 | extract_verbose_list = 1, | 5 | extract_verbose_list = 1, |
@@ -26,20 +26,23 @@ typedef struct file_headers_s { | |||
26 | mode_t mode; | 26 | mode_t mode; |
27 | time_t mtime; | 27 | time_t mtime; |
28 | dev_t device; | 28 | dev_t device; |
29 | int (*extract_func)(FILE *, FILE *); | 29 | int (*extract_func) (FILE *, FILE *); |
30 | } file_header_t; | 30 | } file_header_t; |
31 | 31 | ||
32 | file_header_t *get_header_ar(FILE *in_file); | 32 | file_header_t *get_header_ar(FILE * in_file); |
33 | file_header_t *get_header_cpio(FILE *src_stream); | 33 | file_header_t *get_header_cpio(FILE * src_stream); |
34 | file_header_t *get_header_tar(FILE *tar_stream); | 34 | file_header_t *get_header_tar(FILE * tar_stream); |
35 | file_header_t *get_header_zip(FILE *zip_stream); | 35 | file_header_t *get_header_zip(FILE * zip_stream); |
36 | 36 | ||
37 | void seek_sub_file(FILE *src_stream, const int count); | 37 | void seek_sub_file(FILE * src_stream, const int count); |
38 | 38 | ||
39 | extern off_t archive_offset; | 39 | extern off_t archive_offset; |
40 | 40 | ||
41 | char *unarchive(FILE *src_stream, FILE *out_stream, file_header_t *(*get_headers)(FILE *), | 41 | char *unarchive(FILE * src_stream, FILE * out_stream, |
42 | const int extract_function, const char *prefix, char **include_name, char **exclude_name); | 42 | file_header_t * (*get_headers) (FILE *), |
43 | const int extract_function, const char *prefix, | ||
44 | char **include_name, char **exclude_name); | ||
43 | 45 | ||
44 | char *deb_extract(const char *package_filename, FILE *out_stream, const int extract_function, | 46 | char *deb_extract(const char *package_filename, FILE * out_stream, |
45 | const char *prefix, const char *filename); | 47 | const int extract_function, const char *prefix, |
48 | const char *filename); | ||