Tree wide: Replace sstrerror() with STRERRNO.
[collectd.git] / src / irq.c
index d540415..f8cf37c 100644 (file)
--- a/src/irq.c
+++ b/src/irq.c
@@ -90,9 +90,7 @@ static int irq_read(void) {
    */
   fh = fopen("/proc/interrupts", "r");
   if (fh == NULL) {
-    char errbuf[1024];
-    ERROR("irq plugin: fopen (/proc/interrupts): %s",
-          sstrerror(errno, errbuf, sizeof(errbuf)));
+    ERROR("irq plugin: fopen (/proc/interrupts): %s", STRERRNO);
     return -1;
   }