]> git.ipfire.org Git - thirdparty/mdadm.git/commit - util.c
mdadm: Fix building errors
authorXiao Ni <xni@redhat.com>
Tue, 22 Jun 2021 15:15:55 +0000 (23:15 +0800)
committerJes Sorensen <jsorensen@fb.com>
Fri, 16 Jul 2021 14:27:17 +0000 (10:27 -0400)
commitccd61ebfd97fde43768497c79e3d361b484b1520
tree9465a2283db0853982740944acf831089ba0760a
parent601ffa784f03cea843b9b732e561ffea0b8c036f
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>
mapfile.c
util.c