chiark / gitweb /
sd-rtnl: improve detection of broadcast messages
[elogind.git] / src / notify / notify.c
index f98075d5130c3c3d08151bdc861abc8c69d7d8ca..00db75314ea499d6cc01490ae7bf42016a35a365 100644 (file)
@@ -24,7 +24,6 @@
 #include <errno.h>
 #include <unistd.h>
 #include <stdlib.h>
-#include <string.h>
 
 #include "systemd/sd-daemon.h"
 
@@ -198,7 +197,7 @@ int main(int argc, char* argv[]) {
         }
 
         if (r == 0)
-                r = -ENOTSUP;
+                r = -EOPNOTSUPP;
 
 finish:
         return r < 0 ? EXIT_FAILURE : EXIT_SUCCESS;