Mercurial > hg > nnchat
comparison main.c @ 703:d2c7ef3c6d9c
Adjust to th-libs API change.
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Tue, 28 Jan 2020 18:53:30 +0200 |
parents | 46efb0b16339 |
children | 4426bbf3264b |
comparison
equal
deleted
inserted
replaced
702:46efb0b16339 | 703:d2c7ef3c6d9c |
---|---|
595 va_end(ap); | 595 va_end(ap); |
596 } | 596 } |
597 } | 597 } |
598 | 598 |
599 | 599 |
600 void nn_network_errfunc(struct _th_conn_t *conn, int err, const char *msg) | 600 void nn_network_errfunc(th_conn_t *conn, int err, const char *msg) |
601 { | 601 { |
602 (void) conn; | 602 (void) conn; |
603 (void) err; | 603 (void) err; |
604 errorMsg("%s", msg); | 604 errorMsg("%s", msg); |
605 } | 605 } |
606 | 606 |
607 | 607 |
608 void nn_network_msgfunc(struct _th_conn_t *conn, int loglevel, const char *msg) | 608 void nn_network_msgfunc(th_conn_t *conn, int loglevel, const char *msg) |
609 { | 609 { |
610 (void) conn; | 610 (void) conn; |
611 (void) loglevel; | 611 (void) loglevel; |
612 printMsgConst(NULL, LOG_STAMP | LOG_WINDOW | LOG_FILE, msg); | 612 printMsgConst(NULL, LOG_STAMP | LOG_WINDOW | LOG_FILE, msg); |
613 } | 613 } |