Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: jacmet at uclibc.org <jacmet@uclibc.org>
To: buildroot@busybox.net
Subject: [Buildroot] svn commit: trunk/buildroot/package/bind
Date: Wed, 29 Oct 2008 00:35:04 -0700 (PDT)	[thread overview]
Message-ID: <20081029073504.2F0043C6C2@busybox.net> (raw)

Author: jacmet
Date: 2008-10-29 00:35:03 -0700 (Wed, 29 Oct 2008)
New Revision: 23844

Log:
bind: use strchr() instead of index()

Added:
   trunk/buildroot/package/bind/bind-9.3.2-susv3-legacy.patch


Changeset:
Added: trunk/buildroot/package/bind/bind-9.3.2-susv3-legacy.patch
===================================================================
--- trunk/buildroot/package/bind/bind-9.3.2-susv3-legacy.patch	                        (rev 0)
+++ trunk/buildroot/package/bind/bind-9.3.2-susv3-legacy.patch	2008-10-29 07:35:03 UTC (rev 23844)
@@ -0,0 +1,33 @@
+---
+ lib/isc/unix/ifiter_ioctl.c |    7 ++++---
+ 1 file changed, 4 insertions(+), 3 deletions(-)
+
+Index: bind-9.3.2/lib/isc/unix/ifiter_ioctl.c
+===================================================================
+--- bind-9.3.2.orig/lib/isc/unix/ifiter_ioctl.c
++++ bind-9.3.2/lib/isc/unix/ifiter_ioctl.c
+@@ -17,11 +17,12 @@
+ 
+ /* $Id: ifiter_ioctl.c,v 1.19.2.5.2.17 2005/10/14 02:13:07 marka Exp $ */
+ 
++#include <string.h>
++
+ /*
+  * Obtain the list of network interfaces using the SIOCGLIFCONF ioctl.
+  * See netintro(4).
+  */
+-
+ #if defined(SIOCGLIFCONF) && defined(SIOCGLIFADDR)
+ #ifdef ISC_PLATFORM_HAVEIF_LADDRCONF
+ #define lifc_len iflc_len
+@@ -478,8 +479,8 @@
+ 	for (i = 0; i < 16; i++) {
+ 		unsigned char byte;
+ 		static const char hex[] = "0123456789abcdef";
+-		byte = ((index(hex, address[i * 2]) - hex) << 4) |
+-		       (index(hex, address[i * 2 + 1]) - hex);
++		byte = ((strchr(hex, address[i * 2]) - hex) << 4) |
++		       (strchr(hex, address[i * 2 + 1]) - hex);
+ 		addr6.s6_addr[i] = byte;
+ 	}
+ 	iter->current.af = AF_INET6;

             reply	other threads:[~2008-10-29  7:35 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-10-29  7:35 jacmet at uclibc.org [this message]
  -- strict thread matches above, loose matches on Subject: below --
2009-03-05 13:33 [Buildroot] svn commit: trunk/buildroot/package/bind jacmet at uclibc.org
2009-03-05 13:33 jacmet at uclibc.org
2009-03-05 12:14 jacmet at uclibc.org
2009-03-05 12:11 jacmet at uclibc.org
2008-03-06 17:55 ninevoltz at uclibc.org

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20081029073504.2F0043C6C2@busybox.net \
    --to=jacmet@uclibc.org \
    --cc=buildroot@busybox.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox