diff mbox series

[committed] libgfortran/caf/single.c: Fix typo.

Message ID 032bb8a5-cde3-94c7-f0dc-649b47fda402@codesourcery.com
State New
Headers show
Series [committed] libgfortran/caf/single.c: Fix typo. | expand

Commit Message

Tobias Burnus Aug. 3, 2020, 8:41 a.m. UTC
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
diff mbox series

Patch

commit 58cfec3a6e756b534b33787e51c52f5fc63b53ab
Author: Tobias Burnus <tobias@codesourcery.com>
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;