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.

175 lines
5.7 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/teha/openobex-apps/gcc34.patch
  9. # ROCK Linux is Copyright (C) 1998 - 2005 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 -ruN openobex-apps-1.0.0/src/obex_put_common.c openobex-apps-1.0.0-new/src/obex_put_common.c
  20. --- openobex-apps-1.0.0/src/obex_put_common.c 2002-12-01 18:34:41.000000000 +0100
  21. +++ openobex-apps-1.0.0-new/src/obex_put_common.c 2004-09-12 00:57:04.000000000 +0200
  22. @@ -82,7 +82,7 @@
  23. break;
  24. default:
  25. - printf(__FUNCTION__ "() Skipped header %02x\n", hi);
  26. + printf("%s() Skipped header %02x\n", __FUNCTION__, hi);
  27. }
  28. }
  29. if(!body) {
  30. @@ -123,7 +123,7 @@
  31. OBEX_ObjectSetRsp(object, OBEX_RSP_SUCCESS, OBEX_RSP_SUCCESS);
  32. break;
  33. default:
  34. - printf(__FUNCTION__ "() Denied %02x request\n", cmd);
  35. + printf("%s() Denied %02x request\n",__FUNCTION__, cmd);
  36. OBEX_ObjectSetRsp(object, OBEX_RSP_NOT_IMPLEMENTED, OBEX_RSP_NOT_IMPLEMENTED);
  37. break;
  38. }
  39. diff -ruN openobex-apps-1.0.0/src/obex_test_cable.h openobex-apps-1.0.0-new/src/obex_test_cable.h
  40. --- openobex-apps-1.0.0/src/obex_test_cable.h 2002-12-01 18:34:41.000000000 +0100
  41. +++ openobex-apps-1.0.0-new/src/obex_test_cable.h 2004-09-12 01:05:31.000000000 +0200
  42. @@ -38,7 +38,7 @@
  43. #include <openobex/obex.h>
  44. #ifdef CABLE_DEBUG
  45. -#define CDEBUG(args...) printf(__FUNCTION__ "() " args)
  46. +#define CDEBUG(args...) printf("%s() ",__FUNCTION__, args)
  47. #else
  48. #define CDEBUG(args...)
  49. #endif
  50. diff -ruN openobex-apps-1.0.0/src/obex_test_client.c openobex-apps-1.0.0-new/src/obex_test_client.c
  51. --- openobex-apps-1.0.0/src/obex_test_client.c 2002-12-01 18:34:41.000000000 +0100
  52. +++ openobex-apps-1.0.0-new/src/obex_test_client.c 2004-09-12 00:58:31.000000000 +0200
  53. @@ -370,13 +370,13 @@
  54. while(OBEX_ObjectGetNextHeader(handle, object, &hi, &hv, &hlen)) {
  55. if(hi == OBEX_HDR_BODY) {
  56. - printf(__FUNCTION__ "() Found body\n");
  57. + printf("%s() Found body\n",__FUNCTION__ );
  58. body = hv.bs;
  59. body_len = hlen;
  60. break;
  61. }
  62. else {
  63. - printf(__FUNCTION__ "() Skipped header %02x\n", hi);
  64. + printf("%s() Skipped header %02x\n",__FUNCTION__, hi);
  65. }
  66. }
  67. diff -ruN openobex-apps-1.0.0/src/obex_test_server.c openobex-apps-1.0.0-new/src/obex_test_server.c
  68. --- openobex-apps-1.0.0/src/obex_test_server.c 2002-12-01 18:34:41.000000000 +0100
  69. +++ openobex-apps-1.0.0-new/src/obex_test_server.c 2004-09-12 01:02:48.000000000 +0200
  70. @@ -54,17 +54,17 @@
  71. char *name = NULL;
  72. char *namebuf = NULL;
  73. - printf(__FUNCTION__ "()\n");
  74. + printf("%s()\n", __FUNCTION__);
  75. while(OBEX_ObjectGetNextHeader(handle, object, &hi, &hv, &hlen)) {
  76. switch(hi) {
  77. case OBEX_HDR_BODY:
  78. - printf(__FUNCTION__ "() Found body\n");
  79. + printf("%s() Found body\n", __FUNCTION__ );
  80. body = hv.bs;
  81. body_len = hlen;
  82. break;
  83. case OBEX_HDR_NAME:
  84. - printf(__FUNCTION__ "() Found name\n");
  85. + printf("%s() Found name\n",__FUNCTION__);
  86. if( (namebuf = malloc(hlen / 2))) {
  87. OBEX_UnicodeToChar(namebuf, hv.bs, hlen);
  88. name = namebuf;
  89. @@ -72,7 +72,7 @@
  90. break;
  91. default:
  92. - printf(__FUNCTION__ "() Skipped header %02x\n", hi);
  93. + printf("%s() Skipped header %02x\n", __FUNCTION__, hi);
  94. }
  95. }
  96. if(!body) {
  97. @@ -103,12 +103,12 @@
  98. char *name = NULL;
  99. char *namebuf = NULL;
  100. - printf(__FUNCTION__ "()\n");
  101. + printf("%s()\n", __FUNCTION__);
  102. while(OBEX_ObjectGetNextHeader(handle, object, &hi, &hv, &hlen)) {
  103. switch(hi) {
  104. case OBEX_HDR_NAME:
  105. - printf(__FUNCTION__ "() Found name\n");
  106. + printf("%s() Found name\n", __FUNCTION__);
  107. if( (namebuf = malloc(hlen / 2))) {
  108. OBEX_UnicodeToChar(namebuf, hv.bs, hlen);
  109. name = namebuf;
  110. @@ -116,16 +116,16 @@
  111. break;
  112. default:
  113. - printf(__FUNCTION__ "() Skipped header %02x\n", hi);
  114. + printf("%s() Skipped header %02x\n", __FUNCTION__, hi);
  115. }
  116. }
  117. if(!name) {
  118. - printf(__FUNCTION__ "() Got a GET without a name-header!\n");
  119. + printf("%s() Got a GET without a name-header!\n", __FUNCTION__);
  120. OBEX_ObjectSetRsp(object, OBEX_RSP_NOT_FOUND, OBEX_RSP_NOT_FOUND);
  121. return;
  122. }
  123. - printf(__FUNCTION__ "() Got a request for %s\n", name);
  124. + printf("%s() Got a request for %s\n", __FUNCTION__, name);
  125. buf = easy_readfile(name, &file_size);
  126. if(buf == NULL) {
  127. @@ -154,7 +154,7 @@
  128. const uint8_t *who = NULL;
  129. int who_len = 0;
  130. - printf(__FUNCTION__ "()\n");
  131. + printf("%s()\n", __FUNCTION__);
  132. while(OBEX_ObjectGetNextHeader(handle, object, &hi, &hv, &hlen)) {
  133. if(hi == OBEX_HDR_WHO) {
  134. @@ -162,7 +162,7 @@
  135. who_len = hlen;
  136. }
  137. else {
  138. - printf(__FUNCTION__ "() Skipped header %02x\n", hi);
  139. + printf("%s() Skipped header %02x\n", __FUNCTION__, hi);
  140. }
  141. }
  142. if (who_len == 6) {
  143. @@ -199,7 +199,7 @@
  144. OBEX_ObjectSetRsp(object, OBEX_RSP_CONTINUE, OBEX_RSP_SUCCESS);
  145. break;
  146. default:
  147. - printf(__FUNCTION__ "() Denied %02x request\n", cmd);
  148. + printf("%s() Denied %02x request\n", __FUNCTION__, cmd);
  149. OBEX_ObjectSetRsp(object, OBEX_RSP_NOT_IMPLEMENTED, OBEX_RSP_NOT_IMPLEMENTED);
  150. break;
  151. }
  152. @@ -224,7 +224,7 @@
  153. break;
  154. default:
  155. - printf(__FUNCTION__ "() Command (%02x) has now finished\n", obex_cmd);
  156. + printf("%s() Command (%02x) has now finished\n", __FUNCTION__, obex_cmd);
  157. break;
  158. }
  159. }