summaryrefslogtreecommitdiffstats
path: root/libc/tzcode
diff options
context:
space:
mode:
authorElliott Hughes <enh@google.com>2014-08-06 15:23:11 -0700
committerElliott Hughes <enh@google.com>2014-08-06 17:31:48 -0700
commit13bab43337242094663d6f699ad996ddc99ec582 (patch)
treed6d1c009d71464edc399a0a4c74c08a4998cab43 /libc/tzcode
parent3a238ae7620298608e1d463901051c397e4f8a2f (diff)
downloadbionic-13bab43337242094663d6f699ad996ddc99ec582.zip
bionic-13bab43337242094663d6f699ad996ddc99ec582.tar.gz
bionic-13bab43337242094663d6f699ad996ddc99ec582.tar.bz2
Fix the tzdata update tools.
The recent libcore ZoneInfo changes mean that we can no longer compile libcore's ZoneInfo against the RI. Luckily, the field in our data file that we needed ZoneInfo for isn't actually used. This change removes our dependence on libcore. I've left the field in to avoid a file format change. We can remove the field if/when we next have a real need to bump the file format. (cherry-pick of 90cb5ffb85a9bc2e725824b3ca8db932d02c45db.) Bug: 16168653 Change-Id: Iedad2252c2b49f4d8bb2c7d9078b39b622444ca7
Diffstat (limited to 'libc/tzcode')
-rw-r--r--libc/tzcode/localtime.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libc/tzcode/localtime.c b/libc/tzcode/localtime.c
index 5e4e962..3bbed90 100644
--- a/libc/tzcode/localtime.c
+++ b/libc/tzcode/localtime.c
@@ -2210,7 +2210,7 @@ static int __bionic_open_tzdata_path(const char* path_prefix_variable, const cha
char buf[NAME_LENGTH];
int32_t start;
int32_t length;
- int32_t raw_gmt_offset;
+ int32_t unused; // Was raw GMT offset; always 0 since tzdata2014f (L).
};
size_t id_count = (ntohl(header.data_offset) - ntohl(header.index_offset)) / sizeof(struct index_entry_t);