summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Haller <thaller@redhat.com>2015-06-02 15:54:50 +0200
committerThomas Haller <thaller@redhat.com>2015-06-29 15:02:43 +0200
commitd90d5f5af0acf3e3422a959e3423be2c9040780b (patch)
treefbd8b2b42209c8d0f83c98cb34485f4555f8c5bd
parent5dc23a28f833958202595a4840930552422c46c0 (diff)
downloadNetworkManager-d90d5f5af0acf3e3422a959e3423be2c9040780b.tar.gz
device/trivial: refactor declaration of NMUnmanagedFlags enum flags
-rw-r--r--src/devices/nm-device.h14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/devices/nm-device.h b/src/devices/nm-device.h
index 9cdab4c3fc..469d755ed5 100644
--- a/src/devices/nm-device.h
+++ b/src/devices/nm-device.h
@@ -366,13 +366,13 @@ RfKillType nm_device_get_rfkill_type (NMDevice *device);
* yet initialized
*/
typedef enum {
- NM_UNMANAGED_NONE = 0x00,
- NM_UNMANAGED_DEFAULT = 0x01,
- NM_UNMANAGED_INTERNAL = 0x02,
- NM_UNMANAGED_USER = 0x04,
- NM_UNMANAGED_PARENT = 0x08,
- NM_UNMANAGED_EXTERNAL_DOWN = 0x10,
- NM_UNMANAGED_PLATFORM_INIT = 0x20,
+ NM_UNMANAGED_NONE = 0,
+ NM_UNMANAGED_DEFAULT = (1LL << 0),
+ NM_UNMANAGED_INTERNAL = (1LL << 1),
+ NM_UNMANAGED_USER = (1LL << 2),
+ NM_UNMANAGED_PARENT = (1LL << 3),
+ NM_UNMANAGED_EXTERNAL_DOWN = (1LL << 4),
+ NM_UNMANAGED_PLATFORM_INIT = (1LL << 5),
/* Boundary value */
__NM_UNMANAGED_LAST,