X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=blobdiff_plain;f=udev_utils_file.c;h=6a046e822da596ab310f124c18e0e415096e4509;hb=8bb39322f092fde89bf1082f51715a2f2da1c187;hp=cd9c244f0f3d1b799f58063032ba2da959c6e3b5;hpb=0da0efb2b622435209d183b49e2d16d426142b2c;p=elogind.git diff --git a/udev_utils_file.c b/udev_utils_file.c index cd9c244f0..6a046e822 100644 --- a/udev_utils_file.c +++ b/udev_utils_file.c @@ -30,11 +30,7 @@ #include #include -#include "udev_libc_wrapper.h" #include "udev.h" -#include "logging.h" -#include "udev_utils.h" -#include "list.h" int create_path(const char *path) { @@ -53,7 +49,7 @@ int create_path(const char *path) pos[0] = '\0'; dbg("stat '%s'\n", p); - if (stat (p, &stats) == 0 && (stats.st_mode & S_IFMT) == S_IFDIR) + if (stat(p, &stats) == 0 && (stats.st_mode & S_IFMT) == S_IFDIR) return 0; if (create_path (p) != 0)