mirror of the now-defunct rocklinux.org
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.

81 lines
3.0 KiB

  1. # --- ROCK-COPYRIGHT-NOTE-BEGIN ---
  2. #
  3. # This copyright note is auto-generated by ./scripts/Create-CopyPatch.
  4. # Please add additional copyright information _after_ the line containing
  5. # the ROCK-COPYRIGHT-NOTE-END tag. Otherwise it might get removed by
  6. # the ./scripts/Create-CopyPatch script. Do not edit this copyright text!
  7. #
  8. # ROCK Linux: rock-src/package/tsa/cyrus-sasl/gcc40.patch
  9. # ROCK Linux is Copyright (C) 1998 - 2006 Clifford Wolf
  10. #
  11. # This patch file is dual-licensed. It is available under the license the
  12. # patched project is licensed under, as long as it is an OpenSource license
  13. # as defined at http://www.opensource.org/ (e.g. BSD, X11) or under the terms
  14. # of the GNU General Public License as published by the Free Software
  15. # Foundation; either version 2 of the License, or (at your option) any later
  16. # version.
  17. #
  18. # --- ROCK-COPYRIGHT-NOTE-END ---
  19. diff -dur cyrus-sasl-1.5.28/sample/client.c src.cyrus-sasl.1134298515.31795.185555095/cyrus-sasl-1.5.28/sample/client.c
  20. --- cyrus-sasl-1.5.28/sample/client.c 2001-12-21 03:31:17.000000000 +0100
  21. +++ src.cyrus-sasl.1134298515.31795.185555095/cyrus-sasl-1.5.28/sample/client.c 2005-12-12 03:38:20.000000000 +0100
  22. @@ -230,7 +230,7 @@
  23. exit(EX_OSERR);
  24. }
  25. - if (connect(sock, (struct sockaddr *) &sin, sizeof (sin)) < 0) {
  26. + if (connect(sock, (__CONST_SOCKADDR_ARG) ((const struct sockaddr_in *)&sin), sizeof (sin)) < 0) {
  27. perror("connect");
  28. exit(EX_UNAVAILABLE);
  29. }
  30. @@ -386,11 +386,11 @@
  31. /* set ip addresses */
  32. salen = sizeof(localaddr);
  33. - if (getsockname(fd, (struct sockaddr *)&localaddr, &salen) < 0) {
  34. + if (getsockname(fd, (__SOCKADDR_ARG)&localaddr, &salen) < 0) {
  35. perror("getsockname");
  36. }
  37. salen = sizeof(remoteaddr);
  38. - if (getpeername(fd, (struct sockaddr *)&remoteaddr, &salen) < 0) {
  39. + if (getpeername(fd, (__SOCKADDR_ARG)&remoteaddr, &salen) < 0) {
  40. perror("getpeername");
  41. }
  42. diff -dur cyrus-sasl-1.5.28/sample/server.c src.cyrus-sasl.1134298515.31795.185555095/cyrus-sasl-1.5.28/sample/server.c
  43. --- cyrus-sasl-1.5.28/sample/server.c 2001-12-21 03:31:18.000000000 +0100
  44. +++ src.cyrus-sasl.1134298515.31795.185555095/cyrus-sasl-1.5.28/sample/server.c 2005-12-12 03:46:32.000000000 +0100
  45. @@ -95,7 +95,7 @@
  46. exit(EX_OSERR);
  47. }
  48. - if (bind(sock, &sin, salen) < 0) {
  49. + if (bind(sock, (__CONST_SOCKADDR_ARG) ((const struct sockaddr_in *)&sin), salen) < 0) {
  50. perror("bind");
  51. exit(EX_OSERR);
  52. }
  53. @@ -263,7 +263,8 @@
  54. int fd = -1;
  55. FILE *in, *out;
  56. - fd = accept(l, NULL, NULL);
  57. + __SOCKADDR_ARG nullarg;
  58. + fd = accept(l, nullarg, NULL);
  59. if (fd < 0) {
  60. perror("accept");
  61. exit(0);
  62. @@ -283,11 +284,11 @@
  63. /* set ip addresses */
  64. salen = sizeof(localaddr);
  65. - if (getsockname(fd, (struct sockaddr *)&localaddr, &salen) < 0) {
  66. + if (getsockname(fd, (__SOCKADDR_ARG)&localaddr, &salen) < 0) {
  67. perror("getsockname");
  68. }
  69. salen = sizeof(remoteaddr);
  70. - if (getpeername(fd, (struct sockaddr *)&remoteaddr, &salen) < 0) {
  71. + if (getpeername(fd, (__SOCKADDR_ARG)&remoteaddr, &salen) < 0) {
  72. perror("getpeername");
  73. }