diff options
Diffstat (limited to 'data.c')
| -rw-r--r-- | data.c | 14 |
1 files changed, 14 insertions, 0 deletions
| @@ -41,6 +41,20 @@ int srv_open(const char *basedir, int auto_upgrade) | |||
| 41 | FILE *f; | 41 | FILE *f; |
| 42 | xs_str *error = NULL; | 42 | xs_str *error = NULL; |
| 43 | 43 | ||
| 44 | /* MUST be three letters */ | ||
| 45 | months[0] = LL("Jan"); | ||
| 46 | months[1] = LL("Feb"); | ||
| 47 | months[2] = LL("Mar"); | ||
| 48 | months[3] = LL("Apr"); | ||
| 49 | months[4] = LL("May"); | ||
| 50 | months[5] = LL("Jun"); | ||
| 51 | months[6] = LL("Jul"); | ||
| 52 | months[7] = LL("Aug"); | ||
| 53 | months[8] = LL("Sep"); | ||
| 54 | months[9] = LL("Oct"); | ||
| 55 | months[10] = LL("Nov"); | ||
| 56 | months[11] = LL("Dec"); | ||
| 57 | |||
| 44 | pthread_mutex_init(&data_mutex, NULL); | 58 | pthread_mutex_init(&data_mutex, NULL); |
| 45 | 59 | ||
| 46 | srv_basedir = xs_str_new(basedir); | 60 | srv_basedir = xs_str_new(basedir); |