From patchwork Mon Aug 3 08:41:23 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Tobias Burnus X-Patchwork-Id: 1340194 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=gcc.gnu.org (client-ip=2620:52:3:1:0:246e:9693:128c; helo=sourceware.org; envelope-from=gcc-patches-bounces@gcc.gnu.org; receiver=) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=codesourcery.com Received: from sourceware.org (server2.sourceware.org [IPv6:2620:52:3:1:0:246e:9693:128c]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 4BKrw846j4z9sR4 for ; Mon, 3 Aug 2020 18:41:42 +1000 (AEST) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 08BA73851C15; Mon, 3 Aug 2020 08:41:34 +0000 (GMT) X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from esa4.mentor.iphmx.com (esa4.mentor.iphmx.com [68.232.137.252]) by sourceware.org (Postfix) with ESMTPS id 24C513858D35; Mon, 3 Aug 2020 08:41:30 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org 24C513858D35 Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=codesourcery.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=Tobias_Burnus@mentor.com IronPort-SDR: KgX86ylRhHGxSfXhp41DTRmRZ1U2efqdi5LhntSYUV2y0E8bmJ9J2xX7Ye/x0Es+YshZ0enaAo QUcjUKLsTEPJZmWx6DKYvefkJQI3lCO9Bmukw0cBBYPfriGQctX2dZnU4kR4i/JUIBv8Mi8QAu WsrSqq77qD7wstYvMmLXCwtufEqC1gXFqcbRhycXGpm9uSNaaH9sPOEddFeMaio6gvMwlUvUfy IwFPQkpVxjYkGZBTx5ecvNrbgQ+x6jG91+5AUK1Qo3iN5XDGgvxkPNCLZneOtA+9ABFX2+XL1k dRA= X-IronPort-AV: E=Sophos;i="5.75,429,1589270400"; d="diff'?scan'208";a="51663055" Received: from orw-gwy-01-in.mentorg.com ([192.94.38.165]) by esa4.mentor.iphmx.com with ESMTP; 03 Aug 2020 00:41:29 -0800 IronPort-SDR: AhVmp4ijYbJOm6T2OCn+7nRiwsXyKsdNvKFBMbBEGrRakE9bGF1IOZ4g4m3gxc66eUtZG0klfM hrPyJUtxXZwNKeukqmYB/DncJkqWxtgG48wBVf7+dUV1Sb3hwDrES9TzB4ULxRr85KPJ3Fm9I/ VWqsdatvB/5wwwUYREWJ4AXKpjZ4YHfTt0kWteB1Xd3ert4zQjM5B3ETo0Yn/yhbpJjMXsIdru ztzTFlm444TL6Htsa93FdiqvNtwiVCmguH5jmZFEFxf+JjfNeanfbM66o1ccF2uAUG6o+orWZC RnE= To: gcc-patches , fortran From: Tobias Burnus Subject: [Patch, committed] libgfortran/caf/single.c: Fix typo. Message-ID: <032bb8a5-cde3-94c7-f0dc-649b47fda402@codesourcery.com> Date: Mon, 3 Aug 2020 10:41:23 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.10.0 MIME-Version: 1.0 Content-Language: en-US X-Originating-IP: [137.202.0.90] X-ClientProxiedBy: svr-ies-mbx-06.mgc.mentorg.com (139.181.222.6) To svr-ies-mbx-01.mgc.mentorg.com (139.181.222.1) X-Spam-Status: No, score=-12.9 required=5.0 tests=BAYES_00, GIT_PATCH_0, HEADER_FROM_DIFFERENT_DOMAINS, KAM_DMARC_STATUS, SPF_HELO_PASS, SPF_PASS, TXREP autolearn=ham autolearn_force=no version=3.4.2 X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on server2.sourceware.org X-BeenThere: gcc-patches@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc-patches mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: gcc-patches-bounces@gcc.gnu.org Sender: "Gcc-patches" Committed as obvious. ----------------- Mentor Graphics (Deutschland) GmbH, Arnulfstraße 201, 80634 München / Germany Registergericht München HRB 106955, Geschäftsführer: Thomas Heurung, Alexander Walter commit 58cfec3a6e756b534b33787e51c52f5fc63b53ab Author: Tobias Burnus Date: Mon Aug 3 09:41:24 2020 +0200 libgfortran/caf/single.c: Fix typo. libgfortran/ChangeLog * caf/single.c (_gfortran_caf_lock): Fix typo. --- libgfortran/caf/single.c | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/libgfortran/caf/single.c b/libgfortran/caf/single.c index 7bd022d7ff8..8c1abbf9c23 100644 --- a/libgfortran/caf/single.c +++ b/libgfortran/caf/single.c @@ -2961,7 +2961,8 @@ _gfortran_caf_event_query (caf_token_t token, size_t index, void _gfortran_caf_lock (caf_token_t token, size_t index, int image_index __attribute__ ((unused)), - int *aquired_lock, int *stat, char *errmsg, size_t errmsg_len) + int *acquired_lock, int *stat, char *errmsg, + size_t errmsg_len) { const char *msg = "Already locked"; bool *lock = &((bool *) MEMTOK (token))[index]; @@ -2969,16 +2970,16 @@ _gfortran_caf_lock (caf_token_t token, size_t index, if (!*lock) { *lock = true; - if (aquired_lock) - *aquired_lock = (int) true; + if (acquired_lock) + *acquired_lock = (int) true; if (stat) *stat = 0; return; } - if (aquired_lock) + if (acquired_lock) { - *aquired_lock = (int) false; + *acquired_lock = (int) false; if (stat) *stat = 0; return;