diff options
author | laforge <laforge> | 2005-02-09 17:03:36 +0000 |
---|---|---|
committer | laforge <laforge> | 2005-02-09 17:03:36 +0000 |
commit | 4017ea6d31a1badcd8318f2746c547f50809511a (patch) | |
tree | 4dfc6713b5e9acb307fac03aaf566986be83d93e | |
parent | 98ca21cac34ee9313f2372b0db0e98a02d15d829 (diff) |
mysql_init is used by libmysqlclient, rename our init function to _mysql_init
-rw-r--r-- | ulogd/mysql/ulogd_MYSQL.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/ulogd/mysql/ulogd_MYSQL.c b/ulogd/mysql/ulogd_MYSQL.c index 0e46cc9..29396fe 100644 --- a/ulogd/mysql/ulogd_MYSQL.c +++ b/ulogd/mysql/ulogd_MYSQL.c @@ -335,7 +335,7 @@ static int mysql_open_db(char *server, int port, char *user, char *pass, return 0; } -static int mysql_init(void) +static int _mysql_init(void) { /* have the opts parsed */ config_parse_file("MYSQL", &port_ce); @@ -356,7 +356,7 @@ static int mysql_init(void) return 0; } -static void mysql_fini(void) +static void _mysql_fini(void) { mysql_close(dbh); } @@ -364,8 +364,8 @@ static void mysql_fini(void) static ulog_output_t mysql_plugin = { .name = "mysql", .output = &mysql_output, - .init = &mysql_init, - .fini = &mysql_fini, + .init = &_mysql_init, + .fini = &_mysql_fini, }; void _init(void) |