summaryrefslogtreecommitdiffstats
path: root/ommysql.c
diff options
context:
space:
mode:
authorRainer Gerhards <rgerhards@adiscon.com>2007-07-26 10:50:06 +0000
committerRainer Gerhards <rgerhards@adiscon.com>2007-07-26 10:50:06 +0000
commit1904ce3f5aa11f190c881ccda650c1f464fe9271 (patch)
treed912404f4ab5596f21e2ab7a9aed9505b2b88f0c /ommysql.c
parent334a663dd1cc2ad6a4377f39ae0f03c1bee55fe6 (diff)
downloadrsyslog-1904ce3f5aa11f190c881ccda650c1f464fe9271.tar.gz
rsyslog-1904ce3f5aa11f190c881ccda650c1f464fe9271.tar.xz
rsyslog-1904ce3f5aa11f190c881ccda650c1f464fe9271.zip
- removed f_type from omshell.c, omdiscard.c, omusrmsg.c, ommysql.c
- removed f_type from syslogd.c/cflineParseFileName() - fixed bug in omfile.c which could lead to invalid addressing if "-" was given to not sync file - removed f_type from omfile.c
Diffstat (limited to 'ommysql.c')
-rw-r--r--ommysql.c9
1 files changed, 3 insertions, 6 deletions
diff --git a/ommysql.c b/ommysql.c
index 2db0940c..0dac4b77 100644
--- a/ommysql.c
+++ b/ommysql.c
@@ -89,11 +89,9 @@ static void closeMySQL(instanceData *pData)
BEGINfreeInstance
CODESTARTfreeInstance
- switch (f->f_type) {
-# ifdef WITH_DB
- closeMySQL(pData);
-# endif
- }
+# ifdef WITH_DB
+ closeMySQL(pData);
+# endif
ENDfreeInstance
@@ -357,7 +355,6 @@ CODESTARTparseSelectorAct
logerror("write to database action in config file, but rsyslogd compiled without "
"database functionality - ignored");
#else /* WITH_DB defined! */
- f->f_type = F_MYSQL;
p++;
/* Now we read the MySQL connection properties