From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.8 required=3.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, INCLUDES_PATCH,MAILING_LIST_MULTI,SIGNED_OFF_BY,SPF_HELO_NONE,SPF_PASS, URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 5128FC35249 for ; Wed, 5 Feb 2020 08:08:33 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 243572082E for ; Wed, 5 Feb 2020 08:08:33 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727937AbgBEIId (ORCPT ); Wed, 5 Feb 2020 03:08:33 -0500 Received: from vmicros1.altlinux.org ([194.107.17.57]:43816 "EHLO vmicros1.altlinux.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727068AbgBEIIc (ORCPT ); Wed, 5 Feb 2020 03:08:32 -0500 Received: from mua.local.altlinux.org (mua.local.altlinux.org [192.168.1.14]) by vmicros1.altlinux.org (Postfix) with ESMTP id 89BEB72CCEF; Wed, 5 Feb 2020 11:08:30 +0300 (MSK) Received: by mua.local.altlinux.org (Postfix, from userid 508) id 7C9537CCE2F; Wed, 5 Feb 2020 11:08:30 +0300 (MSK) Date: Wed, 5 Feb 2020 11:08:30 +0300 From: "Dmitry V. Levin" To: "Michael Kerrisk (man-pages)" Cc: linux-man Subject: [PATCH] cmsg.3: ffix Message-ID: <20200205080830.GA3117@altlinux.org> References: <20191217143609.GA23014@brightrain.aerifal.cx> <20191217204751.GI1666@brightrain.aerifal.cx> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Sender: linux-man-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-man@vger.kernel.org Signed-off-by: Dmitry V. Levin --- man3/cmsg.3 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/man3/cmsg.3 b/man3/cmsg.3 index 9dd4c9c10..4ff4691ae 100644 --- a/man3/cmsg.3 +++ b/man3/cmsg.3 @@ -192,7 +192,7 @@ for (cmsg = CMSG_FIRSTHDR(&msgh); cmsg != NULL; cmsg = CMSG_NXTHDR(&msgh, cmsg)) { if (cmsg\->cmsg_level == IPPROTO_IP && cmsg\->cmsg_type == IP_TTL) { - memcpy(&receive_ttl, CMSG_DATA(cmsg), sizeof(int)); + memcpy(&receive_ttl, CMSG_DATA(cmsg), sizeof(int)); break; } } -- ldv