OpenSDE Packages Database (without history before r20070)
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.

38 lines
1.3 KiB

  1. # --- SDE-COPYRIGHT-NOTE-BEGIN ---
  2. # This copyright note is auto-generated by ./scripts/Create-CopyPatch.
  3. #
  4. # Filename: package/.../musl/pkg/mdadm/0003-mdadm-musl-sockaddr.patch
  5. # Copyright (C) 2012 - 2013 The OpenSDE Project
  6. #
  7. # More information can be found in the files COPYING and README.
  8. #
  9. # This patch file is dual-licensed. It is available under the license the
  10. # patched project is licensed under, as long as it is an OpenSource license
  11. # as defined at http://www.opensource.org/ (e.g. BSD, X11) or under the terms
  12. # of the GNU General Public License as published by the Free Software
  13. # Foundation; either version 2 of the License, or (at your option) any later
  14. # version.
  15. # --- SDE-COPYRIGHT-NOTE-END ---
  16. --- a/mdmon.c 2012-11-25 02:00:13.801413830 +0100
  17. +++ b/mdmon.c 2012-11-25 02:31:10.676367716 +0100
  18. @@ -231,7 +231,7 @@
  19. addr.sun_family = PF_LOCAL;
  20. strcpy(addr.sun_path, path);
  21. - if (bind(sfd, &addr, sizeof(addr)) < 0) {
  22. + if (bind(sfd, (struct sockaddr *)&addr, sizeof(addr)) < 0) {
  23. close(sfd);
  24. return -1;
  25. }
  26. --- a/msg.c 2012-11-25 02:05:54.825264277 +0100
  27. +++ b/msg.c 2012-11-25 02:33:03.923005492 +0100
  28. @@ -173,7 +173,7 @@
  29. addr.sun_family = PF_LOCAL;
  30. strcpy(addr.sun_path, path);
  31. - if (connect(sfd, &addr, sizeof(addr)) < 0) {
  32. + if (connect(sfd, (struct sockaddr *)&addr, sizeof(addr)) < 0) {
  33. close(sfd);
  34. return -1;
  35. }