diff options
Diffstat (limited to 'src/locale')
-rw-r--r-- | src/locale/__setlocalecat.c | 2 | ||||
-rw-r--r-- | src/locale/dcngettext.c | 8 |
2 files changed, 5 insertions, 5 deletions
diff --git a/src/locale/__setlocalecat.c b/src/locale/__setlocalecat.c index 1c894d9c..c93e9ba0 100644 --- a/src/locale/__setlocalecat.c +++ b/src/locale/__setlocalecat.c @@ -17,7 +17,7 @@ char *__strchrnul(const char *, int); static struct __locale_map *findlocale(const char *name, size_t n) { - static void *loc_head; + static void *volatile loc_head; struct __locale_map *p, *new, *old_head; const char *path = 0, *z; char buf[256]; diff --git a/src/locale/dcngettext.c b/src/locale/dcngettext.c index d3462fd2..0057cb56 100644 --- a/src/locale/dcngettext.c +++ b/src/locale/dcngettext.c @@ -12,7 +12,7 @@ struct binding { struct binding *next; int dirlen; - int active; + volatile int active; char *domainname; char *dirname; char buf[]; @@ -34,7 +34,7 @@ static char *gettextdir(const char *domainname, size_t *dirlen) char *bindtextdomain(const char *domainname, const char *dirname) { - static int lock[2]; + static volatile int lock[2]; struct binding *p, *q; if (!domainname) return 0; @@ -96,8 +96,8 @@ struct msgcat { struct msgcat *next; const void *map; size_t map_size; - void *plural_rule; - int nplurals; + void *volatile plural_rule; + volatile int nplurals; char name[]; }; |