diff options
Diffstat (limited to 'miscutils/mountpoint.c')
-rw-r--r-- | miscutils/mountpoint.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/miscutils/mountpoint.c b/miscutils/mountpoint.c index 6265a20e1..3e5fb4b46 100644 --- a/miscutils/mountpoint.c +++ b/miscutils/mountpoint.c | |||
@@ -10,10 +10,6 @@ | |||
10 | */ | 10 | */ |
11 | 11 | ||
12 | #include "busybox.h" | 12 | #include "busybox.h" |
13 | #include <sys/stat.h> | ||
14 | #include <errno.h> /* errno */ | ||
15 | #include <string.h> /* strerror */ | ||
16 | #include <getopt.h> /* optind */ | ||
17 | 13 | ||
18 | int mountpoint_main(int argc, char **argv) | 14 | int mountpoint_main(int argc, char **argv) |
19 | { | 15 | { |
@@ -46,7 +42,7 @@ int mountpoint_main(int argc, char **argv) | |||
46 | if (S_ISDIR(st.st_mode)) { | 42 | if (S_ISDIR(st.st_mode)) { |
47 | dev_t st_dev = st.st_dev; | 43 | dev_t st_dev = st.st_dev; |
48 | ino_t st_ino = st.st_ino; | 44 | ino_t st_ino = st.st_ino; |
49 | char *p = bb_xasprintf("%s/..", arg); | 45 | char *p = xasprintf("%s/..", arg); |
50 | 46 | ||
51 | if (stat(p, &st) == 0) { | 47 | if (stat(p, &st) == 0) { |
52 | short ret = (st_dev != st.st_dev) || | 48 | short ret = (st_dev != st.st_dev) || |