From owner-freebsd-current@FreeBSD.ORG Fri Apr 1 14:58:56 2011 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 7A132106566B; Fri, 1 Apr 2011 14:58:56 +0000 (UTC) (envelope-from imp@bsdimp.com) Received: from harmony.bsdimp.com (bsdimp.com [199.45.160.85]) by mx1.freebsd.org (Postfix) with ESMTP id 30E0E8FC08; Fri, 1 Apr 2011 14:58:56 +0000 (UTC) Received: from 63.imp.bsdimp.com (63.imp.bsdimp.com [10.0.0.63]) (authenticated bits=0) by harmony.bsdimp.com (8.14.4/8.14.3) with ESMTP id p31EoAVo040179 (version=TLSv1/SSLv3 cipher=DHE-DSS-AES128-SHA bits=128 verify=NO); Fri, 1 Apr 2011 08:50:10 -0600 (MDT) (envelope-from imp@bsdimp.com) Mime-Version: 1.0 (Apple Message framework v1082) From: Warner Losh In-Reply-To: Date: Fri, 1 Apr 2011 08:50:11 -0600 Message-Id: <3AB0D20A-D81D-49EC-BA77-83EACC308796@bsdimp.com> References: <20110331210349.GA4112@freebsd.org> To: Sergey Kandaurov X-Mailer: Apple Mail (2.1082) X-Greylist: Sender succeeded SMTP AUTH, not delayed by milter-greylist-4.0.1 (harmony.bsdimp.com [10.0.0.6]); Fri, 01 Apr 2011 08:50:10 -0600 (MDT) Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: Alexander Best , FreeBSD Current , freebsd-hackers@freebsd.org Subject: Re: issue with devstat_buildmatch(3) and certain strings X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 01 Apr 2011 14:58:56 -0000 On Apr 1, 2011, at 5:40 AM, Sergey Kandaurov wrote: >> if (++tempstr >= &tstr[5]) > ^^^^ > BTW, > this game with pointers might prevent devstat(3) from work on big-endian. I'm very curious about your reasoning here. Warner