summaryrefslogtreecommitdiffstats
path: root/libc/tzcode
diff options
context:
space:
mode:
authorElliott Hughes <enh@google.com>2012-10-22 14:56:31 -0700
committerGerrit Code Review <noreply-gerritcodereview@google.com>2012-10-22 14:56:32 -0700
commitdf92635a57e8093d9cbffc38bbf513f3361ee91e (patch)
tree2785a19d597c8c24449de0b225aae3737982bc03 /libc/tzcode
parenteb370aa31dd549ad7a7a2044dedab1140a7aeda9 (diff)
parent2393535f0d7df55dae3b4fbf5dbcfa7f87192762 (diff)
downloadbionic-df92635a57e8093d9cbffc38bbf513f3361ee91e.zip
bionic-df92635a57e8093d9cbffc38bbf513f3361ee91e.tar.gz
bionic-df92635a57e8093d9cbffc38bbf513f3361ee91e.tar.bz2
Merge "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 31068f1..0ab9e0f 100644
--- a/libc/tzcode/localtime.c
+++ b/libc/tzcode/localtime.c
@@ -2247,13 +2247,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;
@@ -2269,14 +2267,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));