diff options
author | James Booth <boothj5@gmail.com> | 2012-08-19 01:59:02 +0100 |
---|---|---|
committer | James Booth <boothj5@gmail.com> | 2012-08-19 01:59:02 +0100 |
commit | 108194c944b49153ce012fb6b88ed6833886435c (patch) | |
tree | 97ce45a121d6ed24827deae8e92e3ab872d94445 /src | |
parent | 52bcdc1cee716e5ee09640158f98273e2f2e1ef0 (diff) | |
download | profani-tty-108194c944b49153ce012fb6b88ed6833886435c.tar.gz |
Moved functions in jabber.c
Diffstat (limited to 'src')
-rw-r--r-- | src/jabber.c | 15 |
1 files changed, 6 insertions, 9 deletions
diff --git a/src/jabber.c b/src/jabber.c index a7f08de8..1b10ad8c 100644 --- a/src/jabber.c +++ b/src/jabber.c @@ -44,8 +44,12 @@ static struct _jabber_conn_t { int tls_disabled; } jabber_conn; -void xmpp_file_logger(void * const userdata, const xmpp_log_level_t level, - const char * const area, const char * const msg); +void +xmpp_file_logger(void * const userdata, const xmpp_log_level_t level, + const char * const area, const char * const msg) +{ + log_msg(area, msg); +} static const xmpp_log_t file_log = { &xmpp_file_logger, XMPP_LEVEL_DEBUG }; @@ -55,13 +59,6 @@ xmpp_get_file_logger() return (xmpp_log_t*) &file_log; } -void -xmpp_file_logger(void * const userdata, const xmpp_log_level_t level, - const char * const area, const char * const msg) -{ - log_msg(area, msg); -} - // private XMPP handlers static void _jabber_conn_handler(xmpp_conn_t * const conn, const xmpp_conn_event_t status, const int error, |