Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp87804pxk; Fri, 11 Sep 2020 00:50:09 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxGuXLATD2xAajPJIyTd5rfftHMi6SfewzrCeesTrfpoWgmQSN2uS5si0ZT7T12zf3SRQnD X-Received: by 2002:a17:906:95d1:: with SMTP id n17mr884472ejy.324.1599810609166; Fri, 11 Sep 2020 00:50:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1599810609; cv=none; d=google.com; s=arc-20160816; b=CFOn8bsl/9KCHzARxWD0z4rNf5BD3CN88+kR1KI4w0G5VjIrMsZR9HmYz7tYWbMRXy ZAez4kMDmQvouBN3RgfyIHjdl/FmwSMcKWQzMiDbmZaUjVvb2vXd2Ltn5lZMI/l8xOlg BUUGd6LV3SSJj0rvSwx592UE9CbZMb74UO3CBu17Ng8ztKaTw9WW2EEs7niWs8btgL/P u65hITYA6m91f16bdF1aoXBycC8fZzZQOEv11ueGi9CZCd8d3tNwrFmU/NK9SY8Yv8VB 6Op1VHBk+gSn+HUKj7YajIR2mOW+SvVyIvu5kYr4JbSnQwBKrBIXY/yjiwET7snglbm9 BVIw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:to:subject:cc:dkim-signature; bh=BOY6mIGly2PeCZYbpRsY8qOVyIj0XWjJjEwg7QCJuXU=; b=cXTUMn/xizj93gt9RExCfHTnuvNUPjCMnPPQLq1uA3+/hzFyhQt6jTMKnxWwvvyVqO E3o68Pel/+rXhDlU/8Lo5j+pFUyISjWHokcUKLCtiXcOw7ijeow6gqeTD7N+p4ad+k5W rpid4We16fyZpZ6Z/5KS3iS6nycU9056kkJysI8zN6wxnPFmVPLpLmA9zRcaXAj+ezmb FfXrwjFp+wmIqpWoZpBy/nQB410+RPkYkFQiCSegkAiCbZSCrGayHU7wa71joPq+TOkl 3AJiMfghMVYvg8ViuE1X4Mf7UJBwtJdtZBL/5KvDSrURo/8k2/uATTujRLOYbM/TuPzq cvOA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=nMC2P8M6; 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 s11si770412eju.295.2020.09.11.00.49.45; Fri, 11 Sep 2020 00:50:09 -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=nMC2P8M6; 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 S1725768AbgIKHtF (ORCPT + 99 others); Fri, 11 Sep 2020 03:49:05 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47590 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725550AbgIKHtB (ORCPT ); Fri, 11 Sep 2020 03:49:01 -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 0A713C061573; Fri, 11 Sep 2020 00:49:01 -0700 (PDT) Received: by mail-wr1-x441.google.com with SMTP id e16so10507178wrm.2; Fri, 11 Sep 2020 00:49:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=cc:subject:to:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=BOY6mIGly2PeCZYbpRsY8qOVyIj0XWjJjEwg7QCJuXU=; b=nMC2P8M6Xepb79pxSEDaRTi5shuXscdiXiFNXLFw12yTPqVoBb1KV30ticxQ4EgE5r H2yLazjgFACjt8p65A/lpo7hWQUMOFt2WPtqtQgxNVFurGCEvVXRHmOBwH3DG1UeKxKW De7MInQRuB8KAmCKSZDII+YxfAViSQ2rxVE2dr+0FAF/wuD6Aw+++Fpz4d7hY5dRPghZ iDsOgTvKWrNvG5p/wElgxD5lXp9dHUZn62aO2XtKe/e+dWrs5tiIk+x2ElhjwRtjCv83 tmjRT+qF0HpltUbp4YMmUDG/UL4eawz+tCbrx/AWWGMZv0IEq/oeRbFdZ1WzTp0jBlcs 1BrA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:cc:subject:to:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=BOY6mIGly2PeCZYbpRsY8qOVyIj0XWjJjEwg7QCJuXU=; b=Iw2jrX0AHi0sMMaSQKR9D5a9NNLSmIrPN8j4Bn1v7ajCiJ2kBWQApUG9mxJxZB29zo DdL6lK17zBzM0IpIJhte0wgoIoZwhUgXRR/rCDMqM5Da1LJ4lx44jDGqxnPYCwrAhoAo 91N/nae+dAjjJydzat5LbBQdMYygDaToSZwTfWJfiE5Ng1dQnKKhVfuSzov8lGItRFJp o8yDyRW4Zr1TbxLWEhXXD8J9uNwlaP/xUHGN5vcFjQQhljlYdLnRn3y5XheXdqvGCw2N T9NjYLBeggkKxXsj17WFZGHeFaZCCPvUYhDN8bUzTw/yLpPYL4lOL6mxJY9zfqgvGZXF vIAA== X-Gm-Message-State: AOAM5323YQjk8n71HZeeZvFXI79CftcQVbmKZ3UUNkvCT98iAFyzeZSD rLYhYV3eVu1s+fGKEy6kjx+Vmou5uHE= X-Received: by 2002:a5d:69cd:: with SMTP id s13mr664917wrw.379.1599810539363; Fri, 11 Sep 2020 00:48:59 -0700 (PDT) Received: from ?IPv6:2001:a61:2479:6801:d8fe:4132:9f23:7e8f? ([2001:a61:2479:6801:d8fe:4132:9f23:7e8f]) by smtp.gmail.com with ESMTPSA id g131sm2523901wmf.25.2020.09.11.00.48.58 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 11 Sep 2020 00:48:58 -0700 (PDT) Cc: mtk.manpages@gmail.com, linux-man@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 09/24] clock_getcpuclockid.3: Remove unneeded cast To: Alejandro Colomar References: <20200910211344.3562-1-colomar.6.4.3@gmail.com> <20200910211344.3562-10-colomar.6.4.3@gmail.com> From: "Michael Kerrisk (man-pages)" Message-ID: Date: Fri, 11 Sep 2020 09:48:57 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.10.0 MIME-Version: 1.0 In-Reply-To: <20200910211344.3562-10-colomar.6.4.3@gmail.com> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Alex, On 9/10/20 11:13 PM, Alejandro Colomar wrote: > Member 'tv_nsec' of 'struct timespec' is of type 'long' (see time.h.0p), > and therefore, the cast is completely redundant. Good catch! Patch applied. Cheers, Michael > Signed-off-by: Alejandro Colomar > --- > man3/clock_getcpuclockid.3 | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/man3/clock_getcpuclockid.3 b/man3/clock_getcpuclockid.3 > index 283f92557..050d7ad13 100644 > --- a/man3/clock_getcpuclockid.3 > +++ b/man3/clock_getcpuclockid.3 > @@ -154,7 +154,7 @@ main(int argc, char *argv[]) > } > > printf("CPU-time clock for PID %s is %ld.%09ld seconds\en", > - argv[1], (long) ts.tv_sec, (long) ts.tv_nsec); > + argv[1], (long) ts.tv_sec, ts.tv_nsec); > exit(EXIT_SUCCESS); > } > .EE > -- Michael Kerrisk Linux man-pages maintainer; http://www.kernel.org/doc/man-pages/ Linux/UNIX System Programming Training: http://man7.org/training/