-- Sonny Karlsson
>From 8c86fa48711012d50d9b50400eca8414eac5ddff Mon Sep 17 00:00:00 2001 From: Sonny Karlsson <[email protected]> Date: Mon, 13 Aug 2012 20:02:04 +0200 Subject: [PATCH 2/4] scheduler: Remove inline from mk_scheduler_add_client declaration.
Fixes incompatibilities with C99 inlining rules. Signed-off-by: Sonny Karlsson <[email protected]> --- src/include/mk_scheduler.h | 2 +- src/mk_scheduler.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/include/mk_scheduler.h b/src/include/mk_scheduler.h index 23b2fca..0463be1 100644 --- a/src/include/mk_scheduler.h +++ b/src/include/mk_scheduler.h @@ -107,7 +107,7 @@ void mk_sched_update_thread_status(struct sched_list_node *sched, int mk_sched_check_timeouts(struct sched_list_node *sched); -inline int mk_sched_add_client(int remote_fd); +int mk_sched_add_client(int remote_fd); int mk_sched_register_client(int remote_fd, struct sched_list_node *sched); int mk_sched_remove_client(struct sched_list_node *sched, int remote_fd); struct sched_connection *mk_sched_get_connection(struct sched_list_node diff --git a/src/mk_scheduler.c b/src/mk_scheduler.c index 1c91495..2d9e520 100644 --- a/src/mk_scheduler.c +++ b/src/mk_scheduler.c @@ -88,7 +88,7 @@ static inline int _next_target() * Assign a new incomming connection to a specific worker thread, this call comes * from the main monkey process. */ -inline int mk_sched_add_client(int remote_fd) +int mk_sched_add_client(int remote_fd) { int r, t=0; struct sched_list_node *sched; -- 1.7.10.4
_______________________________________________ Monkey mailing list [email protected] http://lists.monkey-project.com/listinfo/monkey
