]> git.ipfire.org Git - thirdparty/mdadm.git/commit
Add casts for the addr arg of connect and bind
authorKhem Raj <raj.khem@gmail.com>
Thu, 14 Jan 2016 06:32:39 +0000 (22:32 -0800)
committerNeilBrown <neilb@suse.com>
Thu, 14 Jan 2016 21:36:45 +0000 (08:36 +1100)
commit50d72ed4298618c679efd43647dd055527e59b10
treed170be9783e4722123bcfe63560c4b09167ece22
parentcf80bce8df43d6ca9f74036ec0bcbe0f215f89be
Add casts for the addr arg of connect and bind

glibc allows the addr arg to connect and socket to be any of a number
of 'sockaddr_*' types, but musl requires 'const struct sockaddr *'
which is in line with open group specs.  So add casts to allow
compilation with musl.

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: NeilBrown <neilb@suse.com>
mdmon.c
msg.c