Date: Fri, 3 Jun 2011 06:34:29 +0000 (UTC) From: Hiroki Sato <hrs@FreeBSD.org> To: src-committers@freebsd.org, svn-src-user@freebsd.org Subject: svn commit: r222641 - user/hrs/ipv6/usr.sbin/rtadvd Message-ID: <201106030634.p536YT1L051670@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201106030634.p536YT1L051670>