summaryrefslogtreecommitdiffstats
path: root/mdadm.h
diff options
context:
space:
mode:
authorKinga Stefaniuk <kinga.stefaniuk@intel.com>2024-05-07 05:38:55 +0200
committerMariusz Tkaczyk <mariusz.tkaczyk@linux.intel.com>2024-05-14 11:07:27 +0200
commitb0f4e8e30f38d83f7e3f53d01d72d4cb3b4d42d7 (patch)
tree2adf313972e469ffee2c9a051ef41c9c7af3cc1c /mdadm.h
parenttests/23rdev-lifetime: fix a typo (diff)
downloadmdadm-b0f4e8e30f38d83f7e3f53d01d72d4cb3b4d42d7.tar.xz
mdadm-b0f4e8e30f38d83f7e3f53d01d72d4cb3b4d42d7.zip
util.c: change devnm to const in mdmon functions
Devnm shall not be changed inside mdmon_running() and mdmon_pid() functions, change this parameter to const. Signed-off-by: Kinga Stefaniuk <kinga.stefaniuk@intel.com> Signed-off-by: Mariusz Tkaczyk <mariusz.tkaczyk@linux.intel.com>
Diffstat (limited to 'mdadm.h')
-rw-r--r--mdadm.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/mdadm.h b/mdadm.h
index 2ff3e463..1ba541fc 100644
--- a/mdadm.h
+++ b/mdadm.h
@@ -1768,8 +1768,8 @@ extern int is_subarray_active(char *subarray, char *devname);
extern int open_subarray(char *dev, char *subarray, struct supertype *st, int quiet);
extern struct superswitch *version_to_superswitch(char *vers);
-extern int mdmon_running(char *devnm);
-extern int mdmon_pid(char *devnm);
+extern int mdmon_running(const char *devnm);
+extern int mdmon_pid(const char *devnm);
extern int check_env(char *name);
extern __u32 random32(void);
extern void random_uuid(__u8 *buf);