diff --git a/src/threadpool.c b/src/threadpool.c
index 3ad02cb369bfcec22689a5aacf97816213eb49f0..6d97a7ea994b519cfce44c647c71a33181a17ccc 100644
--- a/src/threadpool.c
+++ b/src/threadpool.c
@@ -327,7 +327,8 @@ void threadpool_clean(struct threadpool *tp) {
   /* Release the barriers. */
   if (pthread_barrier_destroy(&tp->wait_barrier) != 0 ||
       pthread_barrier_destroy(&tp->run_barrier) != 0)
-    error("Failed to destory threadpool barriers.");
+    error("Failed to destroy threadpool barriers.");
+
 
   /* Clean up memory. */
   free(tp->threads);
diff --git a/tests/testThreadpool.c b/tests/testThreadpool.c
index 0fe212d5ca2db733ec9db2fa61bb58cb40516378..81fee0a15ae1287276ada61de5eed79051b77e1e 100644
--- a/tests/testThreadpool.c
+++ b/tests/testThreadpool.c
@@ -17,7 +17,7 @@
  *
  ******************************************************************************/
 
-include "../config.h"
+#include "../config.h"
 
 // Standard includes.
 #include <stdio.h>