diff options
author | Elliott Hughes <enh@google.com> | 2014-05-14 10:02:03 -0700 |
---|---|---|
committer | Elliott Hughes <enh@google.com> | 2014-05-14 10:02:03 -0700 |
commit | 1728b2396591853345507a063ed6075dfd251706 (patch) | |
tree | 7083cd234073afa5179b94b3d978550c890af90c /libc/tzcode | |
parent | bac795586bbc5dcbe886d8d781710f60c4c19d9b (diff) | |
download | bionic-1728b2396591853345507a063ed6075dfd251706.zip bionic-1728b2396591853345507a063ed6075dfd251706.tar.gz bionic-1728b2396591853345507a063ed6075dfd251706.tar.bz2 |
Switch to g_ for globals.
That's what the Google style guide recommends, and we're starting
to get a mix.
Change-Id: Ib0c53a890bb5deed5c679e887541a715faea91fc
Diffstat (limited to 'libc/tzcode')
-rw-r--r-- | libc/tzcode/localtime.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/libc/tzcode/localtime.c b/libc/tzcode/localtime.c index 3efa5dd..9f67dc6 100644 --- a/libc/tzcode/localtime.c +++ b/libc/tzcode/localtime.c @@ -2255,12 +2255,12 @@ static int __bionic_tzload_cached(const char* name, struct state* const sp, cons _tzLock(); // Our single-item cache. - static char* gCachedTimeZoneName; - static struct state gCachedTimeZone; + static char* g_cached_time_zone_name; + static struct state g_cached_time_zone; // Do we already have this timezone cached? - if (gCachedTimeZoneName != NULL && strcmp(name, gCachedTimeZoneName) == 0) { - *sp = gCachedTimeZone; + if (g_cached_time_zone_name != NULL && strcmp(name, g_cached_time_zone_name) == 0) { + *sp = g_cached_time_zone; _tzUnlock(); return 0; } @@ -2269,9 +2269,9 @@ static int __bionic_tzload_cached(const char* name, struct state* const sp, cons int rc = tzload(name, sp, doextend); if (rc == 0) { // Update the cache. - free(gCachedTimeZoneName); - gCachedTimeZoneName = strdup(name); - gCachedTimeZone = *sp; + free(g_cached_time_zone_name); + g_cached_time_zone_name = strdup(name); + g_cached_time_zone = *sp; } _tzUnlock(); |