summaryrefslogtreecommitdiffstats
path: root/config.c
diff options
context:
space:
mode:
authorMateusz Kusiak <mateusz.kusiak@intel.com>2024-01-18 11:28:41 +0100
committerMariusz Tkaczyk <mariusz.tkaczyk@linux.intel.com>2024-01-24 16:15:04 +0100
commitb823c8f9d65eb7cf3338036c2a3fedf5128dedbc (patch)
tree52bc23321dfa6a50733389b78e7e1f3f2ef5d363 /config.c
parentDefine sysfs max buffer size (diff)
downloadmdadm-b823c8f9d65eb7cf3338036c2a3fedf5128dedbc.tar.xz
mdadm-b823c8f9d65eb7cf3338036c2a3fedf5128dedbc.zip
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>
Diffstat (limited to 'config.c')
-rw-r--r--config.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/config.c b/config.c
index 5f12a1f8..9a04cae8 100644
--- a/config.c
+++ b/config.c
@@ -998,7 +998,7 @@ void load_conffile(void)
dl_add(list, dl_strdup("partitions"));
devline(list);
free_line(list);
- } else if (strcmp(conffile, "none") != 0) {
+ } else if (str_is_none(conffile) == false) {
f = fopen(conffile, "r");
/* Debian chose to relocate mdadm.conf into /etc/mdadm/.
* To allow Debian users to compile from clean source and still