X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=src%2Funixsock.c;h=47baffb3f195d848bf32b945cae199fd303a68be;hb=61a4ed99b1a5b6d371bb745933d0efc5dff9505c;hp=7cbb385c7808af9bdd167ab5c8e129dd6a682fc7;hpb=0b7cd83a5e6bac068ea83a88a5ddcfb07c09fbec;p=collectd.git diff --git a/src/unixsock.c b/src/unixsock.c index 7cbb385c..47baffb3 100644 --- a/src/unixsock.c +++ b/src/unixsock.c @@ -62,7 +62,7 @@ static int sock_fd = -1; static char *sock_file = NULL; static char *sock_group = NULL; static int sock_perms = S_IRWXU | S_IRWXG; -static _Bool delete_socket = 0; +static bool delete_socket = 0; static pthread_t listen_thread = (pthread_t)0; @@ -138,9 +138,8 @@ static int us_open_socket(void) { status = getgrnam_r(grpname, &sg, grbuf, sizeof(grbuf), &g); if (status != 0) { - char errbuf[1024]; WARNING("unixsock plugin: getgrnam_r (%s) failed: %s", grpname, - sstrerror(status, errbuf, sizeof(errbuf))); + STRERROR(status)); break; } if (g == NULL) {