Treewide: use bool instead of _Bool
[collectd.git] / src / unixsock.c
index 7cbb385..47baffb 100644 (file)
@@ -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) {