diff options
author | Denys Vlasenko <vda.linux@googlemail.com> | 2023-05-26 12:34:11 +0200 |
---|---|---|
committer | Denys Vlasenko <vda.linux@googlemail.com> | 2023-05-26 12:34:11 +0200 |
commit | 3c6f6382eef14b880550cbf28ac5a517d0a075fc (patch) | |
tree | fa4a969aabbc2514c13279176add39441b341972 /include | |
parent | aa4d303a3139107919f73cece4eaf85a7dc75db6 (diff) | |
download | busybox-w32-3c6f6382eef14b880550cbf28ac5a517d0a075fc.tar.gz busybox-w32-3c6f6382eef14b880550cbf28ac5a517d0a075fc.tar.bz2 busybox-w32-3c6f6382eef14b880550cbf28ac5a517d0a075fc.zip |
libbb/dump: conditionalize code used only by xxd and od
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'include')
-rw-r--r-- | include/dump.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/include/dump.h b/include/dump.h index 11dcf4523..8fb92f07b 100644 --- a/include/dump.h +++ b/include/dump.h | |||
@@ -33,8 +33,12 @@ typedef struct dumper_t { | |||
33 | int dump_length; /* max bytes to read */ | 33 | int dump_length; /* max bytes to read */ |
34 | smallint dump_vflag; /*enum dump_vflag_t*/ | 34 | smallint dump_vflag; /*enum dump_vflag_t*/ |
35 | FS *fshead; | 35 | FS *fshead; |
36 | #if ENABLE_XXD | ||
36 | const char *xxd_eofstring; | 37 | const char *xxd_eofstring; |
38 | #endif | ||
39 | #if ENABLE_OD | ||
37 | const char *od_eofstring; | 40 | const char *od_eofstring; |
41 | #endif | ||
38 | off_t address; /* address/offset in stream */ | 42 | off_t address; /* address/offset in stream */ |
39 | long long xxd_displayoff; | 43 | long long xxd_displayoff; |
40 | } dumper_t; | 44 | } dumper_t; |