mirror of
https://github.com/Tha14/toxic.git
synced 2025-12-07 00:56:34 +01:00
fix a few formatting bugs and simplify code a bit
This commit is contained in:
@@ -85,10 +85,8 @@ static struct _dns_thread {
|
||||
|
||||
static int dns_error(ToxWindow *self, const char *errmsg)
|
||||
{
|
||||
const char *msg = "User lookup failed: %s";
|
||||
|
||||
pthread_mutex_lock(&Winthread.lock);
|
||||
line_info_add(self, NULL, NULL, NULL, SYS_MSG, 0, 0, msg, errmsg);
|
||||
line_info_add(self, NULL, NULL, NULL, SYS_MSG, 0, 0, "User lookup failed: %s", errmsg);
|
||||
pthread_mutex_unlock(&Winthread.lock);
|
||||
|
||||
return -1;
|
||||
|
||||
Reference in New Issue
Block a user