Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp188468pxk; Thu, 24 Sep 2020 03:09:46 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzegv8GyEh5h9y7p+tpp9Q0PEQ8Fc+eTz6iw97n+sI8ZnYVQdozeglzDbNnvy5ah7pLDWVZ X-Received: by 2002:a17:906:b74a:: with SMTP id fx10mr203452ejb.232.1600942186621; Thu, 24 Sep 2020 03:09:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1600942186; cv=none; d=google.com; s=arc-20160816; b=0LBEG4Tx/nNiMRqfU8nZtlOqgitshrNUXC+O37uUuJcn+4qhCiwms1sb2IWZ0EIVZY cNdT64e+oNQBOAMDSCtWkdSR2olYBvJK5+PVj+KsDeQOgGrW7Eg+1ufP4r7BIsT29Fzf RXKXZrH+z5K10h7YzF7xUC1M8nHIC3O8XEO6Wzsx/hHidP+RFbJZlfuliXPoe/0t4fhv SY1juURMp21w33BPFgr50N59A5DDqGqM3Ruc8EXG3MLny+pG1rLzQGw3MCVFonM1DGZX Bfm+z3SQAvhPjeGtA9lAxAFQnnIM6vQHGUO53qdWotuveRYQujBWta5y//Fc8nmr2n76 mMIA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject:dkim-signature; bh=RAZc+yTyqNXVgcuIO1vA6L+zFS2CxS5eFjivb7Dq8j4=; b=LB3X7IHlxX/9lpi52pEESEO/+l1Zw6GFD6bFj2XK3mzz5BxZK/zACRa4bhJN86OxfS uEl5uTODXZiC7LHpWRmsT3pWtyYwlWhLPdf4bSTk+8BEx8K6J1FKd0unzN/Ir4c3U871 WMGf1ee8Gxcwa2FhYACiaBI2VA5jsI0cnoWG0sps6wQOxuZ3WC29XYEZ23bzw2PxL3sq upRqoWTJfGF9rcsUUZGMv6cKQDuUXQ77czeJGl4YAbqos46XBU7oRKmZggpZtjvWnqD+ c8xtt1VTQa70637qR1rO66URj5p+SkVF5VbAglpaFm05OIpkHuDm6WQJc7V7W7zKeJjc 8DRA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b="fVXqX/ez"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id lz9si1682118ejb.618.2020.09.24.03.09.22; Thu, 24 Sep 2020 03:09:46 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b="fVXqX/ez"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727351AbgIXKIF (ORCPT + 99 others); Thu, 24 Sep 2020 06:08:05 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45618 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727325AbgIXKIF (ORCPT ); Thu, 24 Sep 2020 06:08:05 -0400 Received: from mail-wr1-x441.google.com (mail-wr1-x441.google.com [IPv6:2a00:1450:4864:20::441]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BF7A1C0613CE; Thu, 24 Sep 2020 03:08:04 -0700 (PDT) Received: by mail-wr1-x441.google.com with SMTP id j2so3131679wrx.7; Thu, 24 Sep 2020 03:08:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=RAZc+yTyqNXVgcuIO1vA6L+zFS2CxS5eFjivb7Dq8j4=; b=fVXqX/ezP4w/UGdrqSUw3j5TUbPa1Y2ZID3CaJ6X8UjW0UjM8Xrzr409brLE54NyxY VJx4/2jq8vPdvRXcoVxEo9ULZ3UIW1ozAyGWLuMK2/b/CawTj5AMuOGQQ04JULHL6WjL BbVdSOZlap70ApU7gNquHVu/Z+rftYKwA0jsDqNVk63oCe51s/36jtpwtZtpTfxRORvN JggUdaYIOQ7jT6VXc17fLkMf5elkUtCnH9ETTu7c24t3u+4kO4ADNKL53i4X/mSrNRYW NSdNUZ2CPyXOHQShjuoNlUJj5bsTjH4E9d4yXMhGx9+MceRvex2c3FMBEiCicdeCiqb1 f4AA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=RAZc+yTyqNXVgcuIO1vA6L+zFS2CxS5eFjivb7Dq8j4=; b=hreOSZu/RxXbDGHjDYxkKgXFZo5cp+5MS0gb1OfOUq4RR0n0nU4mPTzOooPLuzHO8+ ZlAUePqVSEq2u/xbVg6H7Rs3oB7vTKvmUyQ/G9BrKFc0xRqrxFGJswT/9NQbmLpJ4Tyb /Ovch/0UNi4a1WE1+MxFkIzFMKMHlM54vte/JSDaLxp57MlThM274yNHdfhDAft14iP+ WrF+tdwBNdblTI4Hy5waUhOqff8Mnvp4dWlPq7QjUs+oszKEN2Mi+yty5pfhREu5X1+V rsQjxhn9XRAc+fWjR7UhGveMzwRKH3PFMgXNM4RfKiCE0tXoScOxahCFlqWPcH6ZLXUJ FoNA== X-Gm-Message-State: AOAM533/8TybG66jsSEUBywZa/4Pwj3K0RmKJx/TcZlbp1yeVCFkOe71 V/e/AKK95pHtS6qfvd1IG3g= X-Received: by 2002:adf:ea0f:: with SMTP id q15mr4542670wrm.371.1600942083478; Thu, 24 Sep 2020 03:08:03 -0700 (PDT) Received: from [192.168.1.143] ([170.253.60.68]) by smtp.gmail.com with ESMTPSA id t1sm2684498wmi.16.2020.09.24.03.08.02 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 24 Sep 2020 03:08:02 -0700 (PDT) Subject: Re: [PATCH 12/24] getgrent_r.3: Use sizeof() to get buffer size (instead of hardcoding macro name) To: mtk.manpages@gmail.com Cc: Stefan Puiu , lnx-man , lkml , Walter Harms References: <20200910211344.3562-1-colomar.6.4.3@gmail.com> <20200910211344.3562-13-colomar.6.4.3@gmail.com> <7dd2ab72-3ce7-1f50-229a-e663c3df2dcd@gmail.com> From: Alejandro Colomar Message-ID: Date: Thu, 24 Sep 2020 12:08:01 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.12.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Michael On 2020-09-24 12:04, Michael Kerrisk (man-pages) wrote: > Hi Alex, > > [..] > >> I was reverting the 3 patches I introduced (they changed from solution 1 >> to solution 2), and also was grepping for already existing solution 2 in >> the pages (it seems that solution 2 was a bit more extended than >> solution 1). > > Just so I can refresh my cache, which commits were those? * b9bf90297 - Thu, 10 Sep 2020 23:13:36 +0200 (2 weeks ago) | unix.7: Use sizeof() to get buffer size (instead of hardcoding macro name) - Alejandro Colomar [...] * 1656c1702 - Thu, 10 Sep 2020 23:13:34 +0200 (2 weeks ago) | getpwent_r.3: Use sizeof() to get buffer size (instead of hardcoding macro name) - Alejandro Colomar * cf254328f - Thu, 10 Sep 2020 23:13:33 +0200 (2 weeks ago) | getgrent_r.3: Use sizeof() to get buffer size (instead of hardcoding macro name) - Alejandro Colomar > > Thanks, > > Michael > Cheers, Alex