summaryrefslogtreecommitdiff
path: root/src/core/device.h
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2018-10-09 13:14:04 +0200
committerLennart Poettering <lennart@poettering.net>2018-10-09 21:11:22 +0200
commit4cf997befa17b5d379e258c01f8372077be8503d (patch)
tree1118d4daff79e00d0a65daac173ae2b0d25762ee /src/core/device.h
parent5f616d5febd33bd60aa2a4fe24f44bb4d338fbca (diff)
downloadsystemd-4cf997befa17b5d379e258c01f8372077be8503d.tar.gz
device: clean up DeviceFound flags set
No need to avoid bit 0. Also the U suffix has no effect, don't use it.
Diffstat (limited to 'src/core/device.h')
-rw-r--r--src/core/device.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/core/device.h b/src/core/device.h
index a119b33e57..3062be782d 100644
--- a/src/core/device.h
+++ b/src/core/device.h
@@ -11,9 +11,9 @@ typedef struct Device Device;
* in quick succession). Hence we need to track precisely where it is already visible and where not. */
typedef enum DeviceFound {
DEVICE_NOT_FOUND = 0,
- DEVICE_FOUND_UDEV = 1U << 1, /* The device has shown up in the udev database */
- DEVICE_FOUND_MOUNT = 1U << 2, /* The device has shown up in /proc/self/mountinfo */
- DEVICE_FOUND_SWAP = 1U << 3, /* The device has shown up in /proc/swaps */
+ DEVICE_FOUND_UDEV = 1 << 0, /* The device has shown up in the udev database */
+ DEVICE_FOUND_MOUNT = 1 << 1, /* The device has shown up in /proc/self/mountinfo */
+ DEVICE_FOUND_SWAP = 1 << 2, /* The device has shown up in /proc/swaps */
DEVICE_FOUND_MASK = DEVICE_FOUND_UDEV|DEVICE_FOUND_MOUNT|DEVICE_FOUND_SWAP,
} DeviceFound;