summaryrefslogtreecommitdiff
path: root/src/path
diff options
context:
space:
mode:
Diffstat (limited to 'src/path')
-rw-r--r--src/path/path.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/path/path.c b/src/path/path.c
index 2f0148f074..f7736a4202 100644
--- a/src/path/path.c
+++ b/src/path/path.c
@@ -22,9 +22,7 @@
#include <stdio.h>
#include <getopt.h>
#include <errno.h>
-#include <unistd.h>
#include <stdlib.h>
-#include <string.h>
#include "sd-path.h"
#include "build.h"
@@ -117,7 +115,7 @@ static int print_home(const char *n) {
}
log_error("Path %s not known.", n);
- return -ENOTSUP;
+ return -EOPNOTSUPP;
}
static void help(void) {