summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAnthony G. Basile <blueness@gentoo.org>2014-05-01 09:49:01 -0400
committerAnthony G. Basile <blueness@gentoo.org>2014-05-01 09:49:01 -0400
commit9916d5e79cdffdd4ebea216a36dd04345032c1e1 (patch)
tree3e1e71652392b214d90ec02b51282d954e91f0c6 /src
parent8e22a811415a37a191e1795e7d6c470463264593 (diff)
src/libudev/path-util.c: don't use IN_SET() macro
We do not import this macro which is unnecessarily complex for this one case. Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
Diffstat (limited to 'src')
-rw-r--r--src/libudev/path-util.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libudev/path-util.c b/src/libudev/path-util.c
index 3512002cfa..41bc20de69 100644
--- a/src/libudev/path-util.c
+++ b/src/libudev/path-util.c
@@ -272,7 +272,7 @@ int path_is_mount_point(const char *t, bool allow_symlink) {
r = name_to_handle_at(AT_FDCWD, t, &h.handle, &mount_id, allow_symlink ? AT_SYMLINK_FOLLOW : 0);
if (r < 0) {
- if (IN_SET(errno, ENOSYS, EOPNOTSUPP))
+ if (errno == ENOSYS || errno == ENOTSUP)
/* This kernel or file system does not support
* name_to_handle_at(), hence fallback to the
* traditional stat() logic */