summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBradford Hovinen <hovinen@ximian.com>2001-09-28 21:27:19 +0000
committerBradford Hovinen (Gdict maintainer) <hovinen@src.gnome.org>2001-09-28 21:27:19 +0000
commit091dc3447c15c8e897d70bf32dca5132f0af1462 (patch)
tree3570d8cbe84630e0bc8bc6edb24efbc85f9eb332
parentc01fe3b0acd1dc44a8c0504b80cdc842509bfa71 (diff)
downloadgnome-control-center-091dc3447c15c8e897d70bf32dca5132f0af1462.tar.gz
Only set tm_gmtoff and tm_zone fields if __USE_BSD is defined
2001-09-28 Bradford Hovinen <hovinen@ximian.com> * config-log.c (parse_line): Only set tm_gmtoff and tm_zone fields if __USE_BSD is defined * util.c (parse_date): Ditto
-rw-r--r--archiver/ChangeLog5
-rw-r--r--archiver/config-log.c2
-rw-r--r--archiver/util.c2
3 files changed, 9 insertions, 0 deletions
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 <hovinen@ximian.com>
+ * 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;
}