]> git.ipfire.org Git - thirdparty/mdadm.git/commit
Replace "none" with macro
authorMateusz Kusiak <mateusz.kusiak@intel.com>
Thu, 18 Jan 2024 10:28:41 +0000 (11:28 +0100)
committerMariusz Tkaczyk <mariusz.tkaczyk@linux.intel.com>
Wed, 24 Jan 2024 15:15:04 +0000 (16:15 +0100)
commitb823c8f9d65eb7cf3338036c2a3fedf5128dedbc
tree52bc23321dfa6a50733389b78e7e1f3f2ef5d363
parent90fd70016b99e26e116b12246631b7d4aa3d3d08
Replace "none" with macro

String "none" is used many times throughout the code.
Replace "none" strings with predefined macro.

Add str_is_none() for comparing strings with "none".
Replace str(n)cmp calls with function.

Signed-off-by: Mateusz Kusiak <mateusz.kusiak@intel.com>
Signed-off-by: Mariusz Tkaczyk <mariusz.tkaczyk@linux.intel.com>
14 files changed:
Assemble.c
Build.c
Create.c
Grow.c
Incremental.c
Manage.c
config.c
maps.c
mdadm.c
mdadm.h
monitor.c
super-intel.c
sysfs.c
util.c