summaryrefslogtreecommitdiffstats
path: root/runtime/syslogd-types.h
diff options
context:
space:
mode:
authorRainer Gerhards <rgerhards@adiscon.com>2009-07-03 10:33:35 +0200
committerRainer Gerhards <rgerhards@adiscon.com>2009-07-03 10:33:35 +0200
commitf03b26b550dc7a08f96753c47e8fb0673f5338ec (patch)
treed9d6215894f8370bb03a1d7ec54871b979f30c4f /runtime/syslogd-types.h
parentb37a1eb0f8422102c11c597f15139d64c2d51c13 (diff)
downloadrsyslog-f03b26b550dc7a08f96753c47e8fb0673f5338ec.tar.gz
rsyslog-f03b26b550dc7a08f96753c47e8fb0673f5338ec.tar.xz
rsyslog-f03b26b550dc7a08f96753c47e8fb0673f5338ec.zip
bugfix: missing initialization during timestamp creationv4.5.0
This could lead to timestamps written in the wrong format, but not to an abort.
Diffstat (limited to 'runtime/syslogd-types.h')
-rw-r--r--runtime/syslogd-types.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/runtime/syslogd-types.h b/runtime/syslogd-types.h
index 83b38f28..4a26f993 100644
--- a/runtime/syslogd-types.h
+++ b/runtime/syslogd-types.h
@@ -76,6 +76,10 @@ enum _EHostnameCmpMode {
};
typedef enum _EHostnameCmpMode EHostnameCmpMode;
+/* time type numerical values for structure below */
+#define TIME_TYPE_UNINIT 0
+#define TIME_TYPE_RFC3164 1
+#define TIME_TYPE_RFC5424 2
/* rgerhards 2004-11-11: the following structure represents
* a time as it is used in syslog.
* rgerhards, 2009-06-23: packed structure for better cache performance