From 091dc3447c15c8e897d70bf32dca5132f0af1462 Mon Sep 17 00:00:00 2001 From: Bradford Hovinen Date: Fri, 28 Sep 2001 21:27:19 +0000 Subject: Only set tm_gmtoff and tm_zone fields if __USE_BSD is defined 2001-09-28 Bradford Hovinen * config-log.c (parse_line): Only set tm_gmtoff and tm_zone fields if __USE_BSD is defined * util.c (parse_date): Ditto --- archiver/ChangeLog | 5 +++++ archiver/config-log.c | 2 ++ archiver/util.c | 2 ++ 3 files changed, 9 insertions(+) diff --git a/archiver/ChangeLog b/archiver/ChangeLog index cae4d91f4..ad92f78d0 100644 --- a/archiver/ChangeLog +++ b/archiver/ChangeLog @@ -1,5 +1,10 @@ 2001-09-28 Bradford Hovinen + * config-log.c (parse_line): Only set tm_gmtoff and tm_zone fields + if __USE_BSD is defined + + * util.c (parse_date): Ditto + * bonobo-config-archiver.c (bonobo_config_archiver_new): Store the listener id in the archiver_db structure (bonobo_config_archiver_destroy): Remove the event source diff --git a/archiver/config-log.c b/archiver/config-log.c index a8e6db5ab..8d40a06cb 100644 --- a/archiver/config-log.c +++ b/archiver/config-log.c @@ -824,8 +824,10 @@ parse_line (char *buffer, int *id, struct tm *date, char **backend_id) if (extract_number (&buffer, &date->tm_sec, 2) == FALSE) return FALSE; +#ifdef __USE_BSD date->tm_gmtoff = 0; date->tm_zone = "GMT"; +#endif if (!isspace (*buffer) || *(buffer + 1) == '\0') return FALSE; buffer++; diff --git a/archiver/util.c b/archiver/util.c index 58ff00275..b1759cd62 100644 --- a/archiver/util.c +++ b/archiver/util.c @@ -94,8 +94,10 @@ parse_date (char *str) if (extract_number (&str, &value, 2)) date->tm_sec = value; +#ifdef __USE_BSD date->tm_zone = "GMT"; date->tm_gmtoff = 0; +#endif return date; } -- cgit v1.2.1