1
0

patch-src_serdisp_control_c 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. $Id: update-patches 24 2008-08-31 14:56:13Z wbx $
  2. --- serdisplib-1.97.8.orig/src/serdisp_control.c 2008-07-30 01:04:44.000000000 +0200
  3. +++ serdisplib-1.97.8/src/serdisp_control.c 2009-05-30 18:07:14.100111588 +0200
  4. @@ -450,7 +450,7 @@ serdisp_t* serdisp_init(serdisp_CONN_t*
  5. }
  6. if (found) {
  7. - char* idxpos = index(patternptr, '=');
  8. + char* idxpos = strchr(patternptr, '=');
  9. int keylen = patternlen;
  10. /* '=' found and position not outside patternlen? */
  11. @@ -568,7 +568,7 @@ serdisp_t* serdisp_init(serdisp_CONN_t*
  12. * \since 1.98
  13. */
  14. long serdisp_getversioncode(void) {
  15. - return (long) SERDISP_VERSION_CODE;
  16. + return (long)SERDISP_VERSION_CODE;
  17. }
  18. @@ -1831,7 +1831,7 @@ int serdisp_setupwirings(serdisp_t* dd,
  19. while( (patternptr = sdtools_nextpattern(patternptr, ',', &patternlen, &patternborder)) ) {
  20. char* valueptr = 0;
  21. int valuelen = 0;
  22. - char* idxpos = index(patternptr, ':');
  23. + char* idxpos = strchr(patternptr, ':');
  24. int keylen = patternlen;
  25. int tabidxkey = 0, tabidxvalue;
  26. @@ -2003,7 +2003,7 @@ int serdisp_setupoptions(serdisp_t* dd,
  27. while( (optionptr = sdtools_nextpattern(optionptr, ';', &optionlen, &optionborder)) ) {
  28. char* valueptr = 0;
  29. int valuelen = 0;
  30. - char* idxpos = index(optionptr, '=');
  31. + char* idxpos = strchr(optionptr, '=');
  32. int keylen = optionlen;
  33. int stdoptidx; /* index of an option found in standard options */
  34. @@ -2072,7 +2072,7 @@ int serdisp_setupoptions(serdisp_t* dd,
  35. int definefound = 0;
  36. while( !definefound && (defineptr = sdtools_nextpattern(defineptr, ',', &definelen, &defineborder)) ) {
  37. - char* defineidxpos = index(defineptr, '=');
  38. + char* defineidxpos = strchr(defineptr, '=');
  39. int definekeylen = definelen;
  40. char* definevalueptr = 0;
  41. int definevaluelen = 0;