[sr-dev] git:master:34b67125: core: remove ending parenthesis in ifdef condition

Daniel-Constantin Mierla miconda at gmail.com
Wed Apr 20 12:08:30 CEST 2016


Module: kamailio
Branch: master
Commit: 34b67125424da7ce86b5cac77e30af0711fafac1
URL: https://github.com/kamailio/kamailio/commit/34b67125424da7ce86b5cac77e30af0711fafac1

Author: Daniel-Constantin Mierla <miconda at gmail.com>
Committer: Daniel-Constantin Mierla <miconda at gmail.com>
Date: 2016-04-20T12:08:17+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

---

Modified: sched_yield.h

---

Diff:  https://github.com/kamailio/kamailio/commit/34b67125424da7ce86b5cac77e30af0711fafac1.diff
Patch: https://github.com/kamailio/kamailio/commit/34b67125424da7ce86b5cac77e30af0711fafac1.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