diff options
author | Mateusz Kusiak <mateusz.kusiak@intel.com> | 2024-01-18 11:28:41 +0100 |
---|---|---|
committer | Mariusz Tkaczyk <mariusz.tkaczyk@linux.intel.com> | 2024-01-24 16:15:04 +0100 |
commit | b823c8f9d65eb7cf3338036c2a3fedf5128dedbc (patch) | |
tree | 52bc23321dfa6a50733389b78e7e1f3f2ef5d363 /config.c | |
parent | Define sysfs max buffer size (diff) | |
download | mdadm-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.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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 |