[sr-dev] git:4.4:71f329c9: core: remove ending parenthesis in ifdef condition

Daniel-Constantin Mierla miconda at gmail.com
Mon Apr 25 09:22:34 CEST 2016


Module: kamailio
Branch: 4.4
Commit: 71f329c971d6ad18f7eda16a2b50b25e9efd3236
URL: https://github.com/kamailio/kamailio/commit/71f329c971d6ad18f7eda16a2b50b25e9efd3236

Author: Daniel-Constantin Mierla <miconda at gmail.com>
Committer: Daniel-Constantin Mierla <miconda at gmail.com>
Date: 2016-04-25T09:18:14+02:00

core: remove ending parenthesis in ifdef condition

warning: ISO C99 requires whitespace after the macro name
sched_yield.h:34:20: warning: extra tokens at end of #ifndef directive
 #ifndef sched_yield()

- reported by Victore Seva, GH #576

(cherry picked from commit 34b67125424da7ce86b5cac77e30af0711fafac1)

---

Modified: sched_yield.h

---

Diff:  https://github.com/kamailio/kamailio/commit/71f329c971d6ad18f7eda16a2b50b25e9efd3236.diff
Patch: https://github.com/kamailio/kamailio/commit/71f329c971d6ad18f7eda16a2b50b25e9efd3236.patch

---

diff --git a/sched_yield.h b/sched_yield.h
index 1f8546d..b63f90e 100644
--- a/sched_yield.h
+++ b/sched_yield.h
@@ -31,7 +31,7 @@
 #else
 #include <unistd.h>
 	/* fake sched_yield */
-#ifndef sched_yield()
+#ifndef sched_yield
 	#define sched_yield()	sleep(0)
 #endif
 #endif




More information about the sr-dev mailing list