From 58cfec3a6e756b534b33787e51c52f5fc63b53ab Mon Sep 17 00:00:00 2001 From: Tobias Burnus Date: Mon, 3 Aug 2020 09:41:24 +0200 Subject: [PATCH] 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; -- 2.30.2