Fix compilation error in MSYS2 environment.
authorIgor Kudrin <ikudrin@accesssoftek.com>
Thu, 23 Jun 2016 15:50:18 +0000 (08:50 -0700)
committerCary Coutant <ccoutant@gmail.com>
Thu, 23 Jun 2016 15:50:18 +0000 (08:50 -0700)
gold/
* gold-threads.cc (impl_threads::Lock_impl_threads): Fix typos.

gold/ChangeLog
gold/gold-threads.cc

index e8980b32354a797f4742c93d7edc6a5b41f4a487..012b682019a8a1113056d38d80334be84072188a 100644 (file)
@@ -1,3 +1,7 @@
+2016-06-23  Igor Kudrin  <ikudrin@accesssoftek.com>
+
+       * gold-threads.cc (impl_threads::Lock_impl_threads): Fix typos.
+
 2016-06-22  H.J. Lu  <hongjiu.lu@intel.com>
 
        PR ld/20283
index ecb10f7de1f89515beeeb17fa46e58dcfdab94eb..d4e2ac6d73817f02f3fcebbd8da93ebdd21f1242 100644 (file)
@@ -100,11 +100,11 @@ Lock_impl_threads::Lock_impl_threads()
   pthread_mutexattr_t attr;
   int err = pthread_mutexattr_init(&attr);
   if (err != 0)
-    gold_fatal(_("pthead_mutextattr_init failed: %s"), strerror(err));
+    gold_fatal(_("pthead_mutexattr_init failed: %s"), strerror(err));
 #ifdef PTHREAD_MUTEX_ADAPTIVE_NP
-  err = pthread_mutextattr_settype(&attr, PTHREAD_MUTEX_ADAPTIVE_NP);
+  err = pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_ADAPTIVE_NP);
   if (err != 0)
-    gold_fatal(_("pthread_mutextattr_settype failed: %s"), strerror(err));
+    gold_fatal(_("pthread_mutexattr_settype failed: %s"), strerror(err));
 #endif
 
   err = pthread_mutex_init(&this->mutex_, &attr);