[systemd-devel] [PATCH 2/2] remove unneeded error.h includes

Emil Renner Berthing systemd at esmil.dk
Mon Sep 15 06:29:18 PDT 2014


These are the only two places where this glibc-specific
header is included. However none of the definitions in it
seem to be used, so just remove the includes.
---
 src/notify/notify.c | 1 -
 src/path/path.c     | 1 -
 2 files changed, 2 deletions(-)

diff --git a/src/notify/notify.c b/src/notify/notify.c
index 6f1c52e..33933e4 100644
--- a/src/notify/notify.c
+++ b/src/notify/notify.c
@@ -21,7 +21,6 @@
 
 #include <stdio.h>
 #include <getopt.h>
-#include <error.h>
 #include <errno.h>
 #include <unistd.h>
 #include <stdlib.h>
diff --git a/src/path/path.c b/src/path/path.c
index 347921a..37f2571 100644
--- a/src/path/path.c
+++ b/src/path/path.c
@@ -21,7 +21,6 @@
 
 #include <stdio.h>
 #include <getopt.h>
-#include <error.h>
 #include <errno.h>
 #include <unistd.h>
 #include <stdlib.h>
-- 
2.1.0



More information about the systemd-devel mailing list