commit ec88cda: [Minor] Core: Oops, fix long standing misprint (yeild -> yield)

Vsevolod Stakhov vsevolod at highsecure.ru
Wed Jan 23 15:49:04 UTC 2019


Author: Vsevolod Stakhov
Date: 2019-01-23 15:07:08 +0000
URL: https://github.com/rspamd/rspamd/commit/ec88cdaeb781eb68e5423883b82dab688ab4c8bd

[Minor] Core: Oops, fix long standing misprint (yeild -> yield)

---
 config.h.in            | 2 +-
 src/libutil/mem_pool.c | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/config.h.in b/config.h.in
index 53f5c3f81..2d7fbc096 100644
--- a/config.h.in
+++ b/config.h.in
@@ -80,7 +80,7 @@
 #cmakedefine HAVE_SA_SIGINFO     1
 #cmakedefine HAVE_SANE_SHMEM     1
 #cmakedefine HAVE_SANE_TZSET     1
-#cmakedefine HAVE_SCHED_YEILD    1
+#cmakedefine HAVE_SCHED_YIELD    1
 #cmakedefine HAVE_SC_NPROCESSORS_ONLN 1
 #cmakedefine HAVE_SEARCH_H       1
 #cmakedefine HAVE_SENDFILE       1
diff --git a/src/libutil/mem_pool.c b/src/libutil/mem_pool.c
index 9a5f316cc..2f39a116d 100644
--- a/src/libutil/mem_pool.c
+++ b/src/libutil/mem_pool.c
@@ -853,7 +853,7 @@ __mutex_spin (rspamd_mempool_mutex_t * mutex)
 	/* Spin */
 	while (nanosleep (&ts, &ts) == -1 && errno == EINTR) ;
 #else
-#       error No methods to spin are defined
+#error No methods to spin are defined
 #endif
 	return 1;
 }


More information about the Commits mailing list