mirror of
git://sourceware.org/git/lvm2.git
synced 2024-12-21 13:34:40 +03:00
cleanup: use braces around macro params
This commit is contained in:
parent
63c052b9e2
commit
9267e0c5e7
@ -21,9 +21,9 @@
|
||||
#define NUMBER_OF_MAJORS 4096
|
||||
|
||||
#ifdef __linux__
|
||||
# define MAJOR(dev) ((dev & 0xfff00) >> 8)
|
||||
# define MINOR(dev) ((dev & 0xff) | ((dev >> 12) & 0xfff00))
|
||||
# define MKDEV(ma,mi) ((mi & 0xff) | (ma << 8) | ((mi & ~0xff) << 12))
|
||||
# define MAJOR(dev) (((dev) & 0xfff00) >> 8)
|
||||
# define MINOR(dev) (((dev) & 0xff) | (((dev) >> 12) & 0xfff00))
|
||||
# define MKDEV(ma,mi) (((mi) & 0xff) | ((ma) << 8) | (((mi) & ~0xff) << 12))
|
||||
#else
|
||||
# define MAJOR(x) major((x))
|
||||
# define MINOR(x) minor((x))
|
||||
|
Loading…
Reference in New Issue
Block a user