Skip to contentSkip to conversation

backend/pixma_bjnp: Replace index() with strchr()

PATCH New Markos Chandras 1 participant 2 messages Mar 5, 2012 – Mar 6, 2012

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 backend/pixma_bjnp: Replace index() with strchr()

Hi,

This patch replaces the obsolete index() function with strchr() in sane-backends code. I have also filed a bug upstream

https://alioth.debian.org/tracker/index.php?func=detail&aid=313563&group_id=30186&atid=410366

I don't know if you want to include this patch on buildroot before upstream does, but it may be useful for people wondering why sane-backend does not build on certain systems. The index() and rindex() functions are only exported if uClibc is configured with UCLIBC_SUSV3_LEGACY_MACROS. This problem has also been discussed in the past:

http://lists.busybox.net/pipermail/buildroot/2007-June/015201.html

Signature · 5 lines
markos
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: sane-backends-1.0.22-index-to-strchr.patch
URL: <http://lists.busybox.net/pipermail/buildroot/attachments/20120305/7f462654/attachment-0001.ksh>
#1 lore raw

PATCH 1/1 backend/pixma_bjnp: Replace index() with strchr()

Quoted 7 lines · Markos Chandras

Hi,

This patch replaces the obsolete index() function with strchr() in sane-backends code. I have also filed a bug upstream

https://alioth.debian.org/tracker/index.php?func=detail&aid=313563&group_id=30186&atid=410366

Quoted 9 lines

I don't know if you want to include this patch on buildroot before upstream does, but it may be useful for people wondering why sane-backend does not build on certain systems. The index() and rindex() functions are only exported if uClibc is configured with UCLIBC_SUSV3_LEGACY_MACROS. This problem has also been discussed in the past:

http://lists.busybox.net/pipermail/buildroot/2007-June/015201.html

This patch is now in sane-backends git repository

http://anonscm.debian.org/gitweb/?p=sane/sane-backends.git;a=commitdiff;h=66fb96d9ad04a901824a0ab14269b525fbbbf7c4

Signature · 1 line
markos