X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Fdata%2Fcalendar.c;h=e07e7d63aca2e9043f7edf692c351147183137e4;hb=da67dbb8a63ee516a6ae69c6099fde077dc20dcc;hp=a2bb7e600004c6cd025c90e0c26641e12fe30ce0;hpb=81579d9e9f994fb2908f50af41c3eb033d216e58;p=pspp diff --git a/src/data/calendar.c b/src/data/calendar.c index a2bb7e6000..e07e7d63ac 100644 --- a/src/data/calendar.c +++ b/src/data/calendar.c @@ -71,12 +71,14 @@ raw_gregorian_to_offset (int y, int m, int d) Gregorian calendar. Returns SYSMIS for dates before 14 Oct 1582. */ double -calendar_gregorian_to_offset (int y, int m, int d, char **errorp) +calendar_gregorian_to_offset (int y, int m, int d, + const struct fmt_settings *settings, + char **errorp) { /* Normalize year. */ if (y >= 0 && y < 100) { - int epoch = settings_get_epoch (); + int epoch = fmt_settings_get_epoch (settings); int century = epoch / 100 + (y < epoch % 100); y += century * 100; }