diff options
author | Xiao Ni <xni@redhat.com> | 2021-06-22 17:15:55 +0200 |
---|---|---|
committer | Jes Sorensen <jsorensen@fb.com> | 2021-07-16 16:27:17 +0200 |
commit | ccd61ebfd97fde43768497c79e3d361b484b1520 (patch) | |
tree | 9465a2283db0853982740944acf831089ba0760a /mapfile.c | |
parent | Don't associate spares with other arrays during RAID Examine (diff) | |
download | mdadm-ccd61ebfd97fde43768497c79e3d361b484b1520.tar.xz mdadm-ccd61ebfd97fde43768497c79e3d361b484b1520.zip |
mdadm: Fix building errors
In util.c, there is a building error:
'/md/metadata_version' directive writing 20 bytes into a
region of size between 0 and 255 [-Werror=format-overflow=]
In mapfile.c
It declares the fouth argument as 'int *' in map_update,
but in mdadm.h it's previously declared as an array 'int[4]'
Signed-off-by: Xiao Ni <xni@redhat.com>
Signed-off-by: Jes Sorensen <jsorensen@fb.com>
Diffstat (limited to 'mapfile.c')
-rw-r--r-- | mapfile.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -215,7 +215,7 @@ void map_free(struct map_ent *map) } int map_update(struct map_ent **mpp, char *devnm, char *metadata, - int *uuid, char *path) + int uuid[4], char *path) { struct map_ent *map, *mp; int rv; |