Use new log macros and err.h fns

Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
This commit is contained in:
Joachim Nilsson
2019-11-12 08:56:06 +01:00
parent 53c2d0e3d9
commit c66411e8c2
2 changed files with 23 additions and 35 deletions

View File

@ -42,8 +42,8 @@
#include <sys/socket.h>
#include <sys/types.h>
#include "log.h"
#include "queue.h"
#include "syslogd.h"
struct sock {
LIST_ENTRY(sock) link;
@ -144,7 +144,7 @@ int socket_poll(struct timeval *timeout)
if (num <= 0) {
/* Log all errors, except when signalled, ignore failures. */
if (num < 0 && EINTR != errno)
smclog(LOG_WARNING, "Failed select(): %s", strerror(errno));
WARN("Failed select(): %s", strerror(errno));
return num;
}