You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
39 lines
1.3 KiB
39 lines
1.3 KiB
11 years ago
|
# --- SDE-COPYRIGHT-NOTE-BEGIN ---
|
||
|
# This copyright note is auto-generated by ./scripts/Create-CopyPatch.
|
||
|
#
|
||
|
# Filename: package/.../musl/pkg/mdadm/0003-mdadm-musl-sockaddr.patch
|
||
|
# Copyright (C) 2012 - 2013 The OpenSDE Project
|
||
|
#
|
||
|
# More information can be found in the files COPYING and README.
|
||
|
#
|
||
|
# This patch file is dual-licensed. It is available under the license the
|
||
|
# patched project is licensed under, as long as it is an OpenSource license
|
||
|
# as defined at http://www.opensource.org/ (e.g. BSD, X11) or under the terms
|
||
|
# of the GNU General Public License as published by the Free Software
|
||
|
# Foundation; either version 2 of the License, or (at your option) any later
|
||
|
# version.
|
||
|
# --- SDE-COPYRIGHT-NOTE-END ---
|
||
|
|
||
|
--- a/mdmon.c 2012-11-25 02:00:13.801413830 +0100
|
||
|
+++ b/mdmon.c 2012-11-25 02:31:10.676367716 +0100
|
||
|
@@ -231,7 +231,7 @@
|
||
|
|
||
|
addr.sun_family = PF_LOCAL;
|
||
|
strcpy(addr.sun_path, path);
|
||
|
- if (bind(sfd, &addr, sizeof(addr)) < 0) {
|
||
|
+ if (bind(sfd, (struct sockaddr *)&addr, sizeof(addr)) < 0) {
|
||
|
close(sfd);
|
||
|
return -1;
|
||
|
}
|
||
|
--- a/msg.c 2012-11-25 02:05:54.825264277 +0100
|
||
|
+++ b/msg.c 2012-11-25 02:33:03.923005492 +0100
|
||
|
@@ -173,7 +173,7 @@
|
||
|
|
||
|
addr.sun_family = PF_LOCAL;
|
||
|
strcpy(addr.sun_path, path);
|
||
|
- if (connect(sfd, &addr, sizeof(addr)) < 0) {
|
||
|
+ if (connect(sfd, (struct sockaddr *)&addr, sizeof(addr)) < 0) {
|
||
|
close(sfd);
|
||
|
return -1;
|
||
|
}
|