summaryrefslogtreecommitdiffstats
path: root/libc/tzcode
diff options
context:
space:
mode:
authorElliott Hughes <enh@google.com>2012-10-22 15:08:38 -0700
committerAndroid Git Automerger <android-git-automerger@android.com>2012-10-22 15:08:38 -0700
commit008744cedaa7e3be533bbedb51dd986c6dfea987 (patch)
treeed3f372cfb1e3af8765d607123aee098bddda64d /libc/tzcode
parent417834b17ee00a6b1cd4e816f632c3596f3f51c3 (diff)
parentdf92635a57e8093d9cbffc38bbf513f3361ee91e (diff)
downloadbionic-008744cedaa7e3be533bbedb51dd986c6dfea987.zip
bionic-008744cedaa7e3be533bbedb51dd986c6dfea987.tar.gz
bionic-008744cedaa7e3be533bbedb51dd986c6dfea987.tar.bz2
am df92635a: Merge "Support zone.tab in bionic, and remove the file format version."
* commit 'df92635a57e8093d9cbffc38bbf513f3361ee91e': Support zone.tab in bionic, and remove the file format version.
Diffstat (limited to 'libc/tzcode')
-rw-r--r--libc/tzcode/localtime.c9
1 files changed, 1 insertions, 8 deletions
diff --git a/libc/tzcode/localtime.c b/libc/tzcode/localtime.c
index f5718b9..fcaf48b 100644
--- a/libc/tzcode/localtime.c
+++ b/libc/tzcode/localtime.c
@@ -2200,13 +2200,11 @@ static int __bionic_open_tzdata_path(const char* path, const char* olson_id, int
}
// byte[12] tzdata_version -- "tzdata2012f\0"
- // int file_format_version -- 1
// int index_offset
// int data_offset
// int zonetab_offset
struct bionic_tzdata_header {
char tzdata_version[12];
- int32_t file_format_version;
int32_t index_offset;
int32_t data_offset;
int32_t zonetab_offset;
@@ -2222,14 +2220,9 @@ static int __bionic_open_tzdata_path(const char* path, const char* olson_id, int
close(fd);
return -1;
}
- if (ntohl(header.file_format_version) != 1) {
- fprintf(stderr, "%s: bad file format version: %d\n", __FUNCTION__, header.file_format_version);
- close(fd);
- return -1;
- }
#if 0
- fprintf(stderr, "version: %s (%d)\n", header.tzdata_version, ntohl(header.file_format_version));
+ fprintf(stderr, "version: %s\n", header.tzdata_version);
fprintf(stderr, "index_offset = %d\n", ntohl(header.index_offset));
fprintf(stderr, "data_offset = %d\n", ntohl(header.data_offset));
fprintf(stderr, "zonetab_offset = %d\n", ntohl(header.zonetab_offset));