summaryrefslogtreecommitdiffstats
path: root/syslogd.c
diff options
context:
space:
mode:
authorRainer Gerhards <rgerhards@adiscon.com>2007-07-10 16:12:46 +0000
committerRainer Gerhards <rgerhards@adiscon.com>2007-07-10 16:12:46 +0000
commit33c28c8d7ada38372fbf7aa414337b4be9377bd8 (patch)
tree4b0f7322c2c8999d01b96abe950bc4080333feb8 /syslogd.c
parentcff4955448a2895a7e1fad8106f5dd1b9a0bfbe7 (diff)
downloadrsyslog-33c28c8d7ada38372fbf7aa414337b4be9377bd8.tar.gz
rsyslog-33c28c8d7ada38372fbf7aa414337b4be9377bd8.tar.xz
rsyslog-33c28c8d7ada38372fbf7aa414337b4be9377bd8.zip
upgrading to autotools build system - thank Peter Vrabec for patches and
the idea
Diffstat (limited to 'syslogd.c')
-rw-r--r--syslogd.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/syslogd.c b/syslogd.c
index f3bde6ca..3dffc346 100644
--- a/syslogd.c
+++ b/syslogd.c
@@ -137,11 +137,12 @@
#define MAXLINE 2048 /* maximum line length */
#define DEFUPRI (LOG_USER|LOG_NOTICE)
#define DEFSPRI (LOG_KERN|LOG_CRIT)
-//#define TIMERINTVL 30 /* interval for checking flush, mark */
-#define TIMERINTVL 20 /* interval for checking flush, mark */
+#define TIMERINTVL 30 /* interval for checking flush, mark */
#define CONT_LINE 1 /* Allow continuation lines */
+#include "config.h"
+
#ifdef MTRACE
#include <mcheck.h>
#endif
@@ -196,7 +197,6 @@
#ifndef TESTING
#include "pidfile.h"
#endif
-#include "version.h"
#include <assert.h>
@@ -7020,8 +7020,8 @@ static void die(int sig)
if (sig) {
dprintf(" exiting on signal %d\n", sig);
(void) snprintf(buf, sizeof(buf) / sizeof(char),
- " [origin software=\"rsyslogd\" " "swVersion=\"" VERSION "." \
- PATCHLEVEL "\" x-pid=\"%d\"]" " exiting on signal %d.",
+ " [origin software=\"rsyslogd\" " "swVersion=\"" VERSION \
+ "\" x-pid=\"%d\"]" " exiting on signal %d.",
(int) myPid, sig);
errno = 0;
logmsgInternal(LOG_SYSLOG|LOG_INFO, buf, LocalHostName, ADDDATE);
@@ -7780,8 +7780,8 @@ static void init()
* rgerhards, 2005-08-17
*/
snprintf(bufStartUpMsg, sizeof(bufStartUpMsg)/sizeof(char),
- " [origin software=\"rsyslogd\" " "swVersion=\"" VERSION "." \
- PATCHLEVEL "\" x-pid=\"%d\"][x-configInfo udpReception=\"%s\" " \
+ " [origin software=\"rsyslogd\" " "swVersion=\"" VERSION \
+ "\" x-pid=\"%d\"][x-configInfo udpReception=\"%s\" " \
"udpPort=\"%s\" tcpReception=\"%s\" tcpPort=\"%s\"]" \
" restart",
(int) myPid,
@@ -9719,7 +9719,7 @@ int main(int argc, char **argv)
bParseHOSTNAMEandTAG = 0;
break;
case 'v':
- printf("rsyslogd %s.%s, ", VERSION, PATCHLEVEL);
+ printf("rsyslogd %s, ", VERSION);
printf("compiled with:\n");
#ifdef USE_PTHREADS
printf("\tFEATURE_PTHREADS (dual-threading)\n");