#include <sys/epoll.h>
#include "libudev.h"
+#include "util.h"
#define ARRAY_SIZE(x) (sizeof(x) / sizeof((x)[0]))
}
/* add sys path if needed */
- if (strncmp(syspath, "/sys", strlen("/sys")) != 0) {
+ if (!startswith(syspath, "/sys")) {
snprintf(path, sizeof(path), "/sys/%s", syspath);
syspath = path;
}