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.

52 lines
1.9 KiB

  1. # --- SDE-COPYRIGHT-NOTE-BEGIN ---
  2. # This copyright note is auto-generated by ./scripts/Create-CopyPatch.
  3. #
  4. # Filename: package/.../libptp/gcc4.patch
  5. # Copyright (C) 2006 The T2 SDE 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. diff -Nur libptp2-1.1.0-orig/src/ptp-pack.c libptp2-1.1.0/src/ptp-pack.c
  17. --- libptp2-1.1.0-orig/src/ptp-pack.c 2005-09-07 09:54:52.000000000 +0000
  18. +++ libptp2-1.1.0/src/ptp-pack.c 2006-02-04 23:04:32.827336000 +0000
  19. @@ -440,7 +440,7 @@
  20. case PTP_DTC_STR:
  21. {
  22. uint8_t len;
  23. - (char *)(*value)=ptp_unpack_string(params,data,0,&len);
  24. + (*value)=(char *)ptp_unpack_string(params,data,0,&len);
  25. break;
  26. }
  27. }
  28. @@ -513,10 +513,10 @@
  29. /* XXX: other int types are unimplemented */
  30. /* XXX: int arrays are unimplemented also */
  31. case PTP_DTC_STR:
  32. - (char *)dpd->FactoryDefaultValue = ptp_unpack_string
  33. + dpd->FactoryDefaultValue = (char *)ptp_unpack_string
  34. (params,data,PTP_dpd_FactoryDefaultValue,&len);
  35. totallen=len*2+1;
  36. - (char *)dpd->CurrentValue = ptp_unpack_string
  37. + dpd->CurrentValue = (char *)ptp_unpack_string
  38. (params, data, PTP_dpd_FactoryDefaultValue +
  39. totallen, &len);
  40. totallen+=len*2+1;
  41. @@ -598,8 +598,8 @@
  42. int i;
  43. for(i=0;i<N;i++)
  44. {
  45. - (char *)dpd->FORM.Enum.SupportedValue[i]=
  46. - ptp_unpack_string
  47. + dpd->FORM.Enum.SupportedValue[i]=
  48. + (char *)ptp_unpack_string
  49. (params,data,PTP_dpd_FactoryDefaultValue
  50. +totallen,&len);
  51. totallen+=len*2+1;