X-Git-Url: https://git.verplant.org/?a=blobdiff_plain;f=src%2Fdaemon%2Ftypes_list.c;h=1ccf10bcb6deb7d3f041ceaee16bc7a0171d3198;hb=614660f40c32b5af9b6c4852e4e370fc3953a5c8;hp=8cfddda5dc4d268f04f19f8008b6ad857b515352;hpb=7b8851b26928b609ce850e78c1eabb50ff319244;p=collectd.git diff --git a/src/daemon/types_list.c b/src/daemon/types_list.c index 8cfddda5..1ccf10bc 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; }