X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=src%2Fdaemon%2Ftypes_list.c;h=3b3b8f45a214732a8375c7ac1e3492cc5a8ac621;hb=0b7cd83a5e6bac068ea83a88a5ddcfb07c09fbec;hp=89a08dd7f30ff61a45abe650fd2a7c2575654983;hpb=88bd89f106abd5c0a9f9a80246e31a16c36a3c6d;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; }