From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751595AbbEJPzI (ORCPT ); Sun, 10 May 2015 11:55:08 -0400 Received: from plane.gmane.org ([80.91.229.3]:55603 "EHLO plane.gmane.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751431AbbEJPzG (ORCPT ); Sun, 10 May 2015 11:55:06 -0400 X-Injected-Via-Gmane: http://gmane.org/ To: linux-kernel@vger.kernel.org From: Noel Grandin Subject: Re: [PATCH 02/12] Add =?utf-8?b?cGFyc2VfaW50ZWdlcigp?= (replacement for =?utf-8?b?c2ltcGxlX3N0cnRvKigpKQ==?= Date: Sun, 10 May 2015 15:52:54 +0000 (UTC) Message-ID: References: <20150508182911.GA9044@p183.telecom.by> <20150508183029.GB9044@p183.telecom.by> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: sea.gmane.org User-Agent: Loom/3.14 (http://gmane.org/) X-Loom-IP: 105.236.68.212 (Mozilla/5.0 (Macintosh; Intel Mac OS X 10_10_3) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/42.0.2311.90 Safari/537.36) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org > int parse_integer(const char *s, unsigned int base, T *val); > I suspect splitting this into parse_signed_int and parse_unsigned_int (or some other equivalent names) will make the call-sites a lot easier to read.