From owner-svn-src-head@FreeBSD.ORG Thu Aug 22 10:01:30 2013 Return-Path: Delivered-To: svn-src-head@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTP id 0FA42B7A for ; Thu, 22 Aug 2013 10:01:30 +0000 (UTC) (envelope-from mailer-daemon@vniz.net) Received: from mail-ea0-f176.google.com (mail-ea0-f176.google.com [209.85.215.176]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 9BF602E77 for ; Thu, 22 Aug 2013 10:01:29 +0000 (UTC) Received: by mail-ea0-f176.google.com with SMTP id q16so793725ead.21 for ; Thu, 22 Aug 2013 03:01:22 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=x-gm-message-state:message-id:date:from:user-agent:mime-version:to :cc:subject:references:in-reply-to:openpgp:content-type :content-transfer-encoding; bh=jPd64LOJ2LCRbl5L+RL17xcvyMBAaQelZ55wHWlPygU=; b=f41KfSVdX24mXh580T2yw2O7twAE3OGUy3774ZK8SLvALEIDbvEX67P+Pb0lOb4ybX bqzzafqfZNwqvCffsbar4Y9HmfpA71N+tKgUOS8Q12rZhsBLz+C9JPB/GSXE39HLotSo VP7v+cv3vc3Nr9DEgSmBwpsqS73YAZO14O4SCkyH7/fcHdXOJXjFnVQOMzDLhAFEqvyl o01FclS8snKV3VV0tThMgImAXMA6CP8CAt6vItV+oARybnucWGSF9XuKIaUt94PCoY7t ieuLP2hDsGUm3wzDCvxAiEZ+2mlh8SpMBxEg47KA2fK5SPNNcr+S6gXbkSxi7WbiucW5 uarg== X-Gm-Message-State: ALoCoQkdcf9hQc1Owpupyeu+BDCQWH0tyWD7ZIIEKeLoseLqYDk2b9mazFhNxXTry00PFoy+3lwj X-Received: by 10.15.27.133 with SMTP id p5mr1868011eeu.65.1377165682149; Thu, 22 Aug 2013 03:01:22 -0700 (PDT) Received: from [192.168.1.2] ([89.169.173.68]) by mx.google.com with ESMTPSA id b45sm16365250eef.4.1969.12.31.16.00.00 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 22 Aug 2013 03:01:21 -0700 (PDT) Message-ID: <5215E16E.4080207@freebsd.org> Date: Thu, 22 Aug 2013 14:01:18 +0400 From: Andrey Chernov User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:17.0) Gecko/20130801 Thunderbird/17.0.8 MIME-Version: 1.0 To: Jilles Tjoelker Subject: Re: svn commit: r254600 - head/lib/libutil References: <201308211646.r7LGk6eV051215@svn.freebsd.org> <5214F72B.7070006@freebsd.org> <20130821190309.GB52908@omg> <20130821202725.GA4991@stack.nl> <20130821212413.GC52908@omg> <20130821213755.GA8052@stack.nl> In-Reply-To: <20130821213755.GA8052@stack.nl> OpenPGP: id=964474DD Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Cc: svn-src-head@freebsd.org, svn-src-all@freebsd.org, Sergey Kandaurov , src-committers@freebsd.org X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 22 Aug 2013 10:01:30 -0000 On 22.08.2013 1:37, Jilles Tjoelker wrote: >> if (number == UINTMAX_MAX && errno == ERANGE) { >> return (-1); >> } >> >> + if (errno == 0) >> + errno = saved_errno; >> + > This looks good to me. > Just being nitpicking) number == UINTMAX_MAX check is unneeded. -- http://ache.vniz.net/ bitcoin:1G6ugdNY6e5jx1GVnAU2ntj2NEfmjKG85r