From 5aec348d39d5511e1baa9627c433e7d484ab3100 Mon Sep 17 00:00:00 2001 From: Dmitry Kozlov Date: Mon, 16 Jun 2014 20:41:27 +0400 Subject: log_pgsql: update calls to new triton interface --- accel-pppd/logs/log_pgsql.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'accel-pppd') diff --git a/accel-pppd/logs/log_pgsql.c b/accel-pppd/logs/log_pgsql.c index 0c2152e7..26c16c06 100644 --- a/accel-pppd/logs/log_pgsql.c +++ b/accel-pppd/logs/log_pgsql.c @@ -86,7 +86,7 @@ static void write_next_msg(void) sleeping = 1; spin_unlock(&queue_lock); if (need_close) { - triton_md_unregister_handler(&pgsql_hnd); + triton_md_unregister_handler(&pgsql_hnd, 0); PQfinish(conn); conn = NULL; triton_context_unregister(&pgsql_ctx); @@ -267,7 +267,7 @@ static void pgsql_close(struct triton_context_t *ctx) { spin_lock(&queue_lock); if (sleeping) { - triton_md_unregister_handler(&pgsql_hnd); + triton_md_unregister_handler(&pgsql_hnd, 0); PQfinish(conn); conn = NULL; triton_context_unregister(&pgsql_ctx); -- cgit v1.2.3