Inotify: convert anonymous enum to constexpr
This commit is contained in:
@@ -28,13 +28,12 @@
|
||||
|
||||
#include <sys/inotify.h>
|
||||
|
||||
enum {
|
||||
IN_MASK = IN_ATTRIB|IN_CLOSE_WRITE|IN_CREATE|IN_DELETE|IN_DELETE_SELF
|
||||
|IN_MOVE|IN_MOVE_SELF
|
||||
static constexpr unsigned IN_MASK =
|
||||
#ifdef IN_ONLYDIR
|
||||
|IN_ONLYDIR
|
||||
IN_ONLYDIR|
|
||||
#endif
|
||||
};
|
||||
IN_ATTRIB|IN_CLOSE_WRITE|IN_CREATE|IN_DELETE|IN_DELETE_SELF
|
||||
|IN_MOVE|IN_MOVE_SELF;
|
||||
|
||||
static void
|
||||
my_inotify_callback(gcc_unused int wd, unsigned mask,
|
||||
|
Reference in New Issue
Block a user