X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=src%2Fdaemon%2Ftypes_list.c;h=3b3b8f45a214732a8375c7ac1e3492cc5a8ac621;hb=ac6580fd886d45a66506fe710a6fea0f48368dcb;hp=89a08dd7f30ff61a45abe650fd2a7c2575654983;hpb=1581f3b307554cbf8b5784729754c5d73a1192a5;p=collectd.git diff --git a/src/daemon/types_list.c b/src/daemon/types_list.c index 89a08dd7..3b3b8f45 100644 --- a/src/daemon/types_list.c +++ b/src/daemon/types_list.c @@ -174,11 +174,9 @@ int read_types_list(const char *file) { fh = fopen(file, "r"); if (fh == NULL) { - char errbuf[1024]; fprintf(stderr, "Failed to open types database `%s': %s.\n", file, - sstrerror(errno, errbuf, sizeof(errbuf))); - ERROR("Failed to open types database `%s': %s", file, - sstrerror(errno, errbuf, sizeof(errbuf))); + STRERRNO); + ERROR("Failed to open types database `%s': %s", file, STRERRNO); return -1; }