diff options
Diffstat (limited to 'src/locale/dcngettext.c')
-rw-r--r-- | src/locale/dcngettext.c | 8 |
1 files changed, 4 insertions, 4 deletions
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[]; }; |