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>
This commit is contained in:
parent
601ffa784f
commit
ccd61ebfd9
|
@ -215,7 +215,7 @@ void map_free(struct map_ent *map)
|
||||||
}
|
}
|
||||||
|
|
||||||
int map_update(struct map_ent **mpp, char *devnm, char *metadata,
|
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;
|
struct map_ent *map, *mp;
|
||||||
int rv;
|
int rv;
|
||||||
|
|
2
util.c
2
util.c
|
@ -1543,7 +1543,7 @@ int open_container(int fd)
|
||||||
/* 'fd' is a block device. Find out if it is in use
|
/* 'fd' is a block device. Find out if it is in use
|
||||||
* by a container, and return an open fd on that container.
|
* by a container, and return an open fd on that container.
|
||||||
*/
|
*/
|
||||||
char path[256];
|
char path[288];
|
||||||
char *e;
|
char *e;
|
||||||
DIR *dir;
|
DIR *dir;
|
||||||
struct dirent *de;
|
struct dirent *de;
|
||||||
|
|
Loading…
Reference in New Issue