From owner-svn-src-user@FreeBSD.ORG Fri Jun 3 06:34:29 2011 Return-Path: Delivered-To: svn-src-user@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id CC107106564A; Fri, 3 Jun 2011 06:34:29 +0000 (UTC) (envelope-from hrs@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:4f8:fff6::2c]) by mx1.freebsd.org (Postfix) with ESMTP id BDAB88FC08; Fri, 3 Jun 2011 06:34:29 +0000 (UTC) Received: from svn.freebsd.org (localhost [127.0.0.1]) by svn.freebsd.org (8.14.4/8.14.4) with ESMTP id p536YTg0051672; Fri, 3 Jun 2011 06:34:29 GMT (envelope-from hrs@svn.freebsd.org) Received: (from hrs@localhost) by svn.freebsd.org (8.14.4/8.14.4/Submit) id p536YT1L051670; Fri, 3 Jun 2011 06:34:29 GMT (envelope-from hrs@svn.freebsd.org) Message-Id: <201106030634.p536YT1L051670@svn.freebsd.org> From: Hiroki Sato Date: Fri, 3 Jun 2011 06:34:29 +0000 (UTC) To: src-committers@freebsd.org, svn-src-user@freebsd.org X-SVN-Group: user MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cc: Subject: svn commit: r222641 - user/hrs/ipv6/usr.sbin/rtadvd X-BeenThere: svn-src-user@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "SVN commit messages for the experimental " user" src tree" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 03 Jun 2011 06:34:29 -0000 Author: hrs Date: Fri Jun 3 06:34:29 2011 New Revision: 222641 URL: http://svn.freebsd.org/changeset/base/222641 Log: Use strchr() instead of index(). Modified: user/hrs/ipv6/usr.sbin/rtadvd/config.c Modified: user/hrs/ipv6/usr.sbin/rtadvd/config.c ============================================================================== --- user/hrs/ipv6/usr.sbin/rtadvd/config.c Fri Jun 3 05:58:49 2011 (r222640) +++ user/hrs/ipv6/usr.sbin/rtadvd/config.c Fri Jun 3 06:34:29 2011 (r222641) @@ -97,7 +97,7 @@ dname_labelenc(char *dst, const char *sr syslog(LOG_DEBUG, "<%s> labelenc = %s", __func__, src); while (src && (len = strlen(src)) != 0) { /* Put a length field with 63 octet limitation first. */ - p = index(src, '.'); + p = strchr(src, '.'); if (p == NULL) *dst++ = len = MIN(63, len); else