Tree wide: Replace sstrerror() with STRERRNO.
[collectd.git] / src / log_logstash.c
index 28cc34c..de34b0e 100644 (file)
@@ -160,9 +160,8 @@ static void log_logstash_print(yajl_gen g, int severity,
   }
 
   if (fh == NULL) {
-    char errbuf[1024];
     fprintf(stderr, "log_logstash plugin: fopen (%s) failed: %s\n", log_file,
-            sstrerror(errno, errbuf, sizeof(errbuf)));
+            STRERRNO);
   } else {
     fprintf(fh, "%s\n", buf);
     if (do_close) {