summaryrefslogtreecommitdiff
path: root/src/daemon/dlt_daemon_unix_socket.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/daemon/dlt_daemon_unix_socket.c')
-rw-r--r--src/daemon/dlt_daemon_unix_socket.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/daemon/dlt_daemon_unix_socket.c b/src/daemon/dlt_daemon_unix_socket.c
index 743035a..e5c5faa 100644
--- a/src/daemon/dlt_daemon_unix_socket.c
+++ b/src/daemon/dlt_daemon_unix_socket.c
@@ -28,6 +28,7 @@
#include <stdio.h>
#include <stdlib.h>
+#include <string.h>
#include <sys/un.h>
#include <sys/socket.h>
#include <sys/types.h>
@@ -40,8 +41,6 @@
#include "dlt_daemon_socket.h"
#include "dlt_daemon_unix_socket.h"
-char err_string[DLT_DAEMON_TEXTBUFSIZE];
-
int dlt_daemon_unix_socket_open(int *sock, char *sock_path, int type, int mask)
{
struct sockaddr_un addr;
@@ -87,8 +86,7 @@ int dlt_daemon_unix_socket_close(int sock)
int ret = close(sock);
if (ret != 0) {
- sprintf(err_string, "unix socket close failed: %s", strerror(errno));
- dlt_log(LOG_WARNING, err_string);
+ dlt_vlog(LOG_WARNING, "unix socket close failed: %s", strerror(errno));
}
return ret;