diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2014-04-21 13:39:39 +0100 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2014-04-21 13:39:39 +0100 |
commit | 5f25b69c03972b0adff6bc649e1922111d0ebb2b (patch) | |
tree | 62fb361ba8eab64f59a1874e5d045d404727ae4e /src/controller.c | |
parent | bc997b7b94a36103a3d409d0de422a71df0a19d6 (diff) | |
download | rspamd-5f25b69c03972b0adff6bc649e1922111d0ebb2b.tar.gz rspamd-5f25b69c03972b0adff6bc649e1922111d0ebb2b.zip |
Refactor worker task structure and API.
Diffstat (limited to 'src/controller.c')
-rw-r--r-- | src/controller.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/controller.c b/src/controller.c index 01f2a6a83..3b48bf5cd 100644 --- a/src/controller.c +++ b/src/controller.c @@ -1279,7 +1279,7 @@ process_header (f_str_t *line, struct controller_session *session) static gboolean fin_learn_task (void *arg) { - struct worker_task *task = (struct worker_task *) arg; + struct rspamd_task *task = (struct rspamd_task *) arg; /* XXX: needs to be reworked */ @@ -1292,7 +1292,7 @@ fin_learn_task (void *arg) static void restore_learn_task (void *arg) { - struct worker_task *task = (struct worker_task *) arg; + struct rspamd_task *task = (struct rspamd_task *) arg; /* Special state */ } @@ -1305,7 +1305,7 @@ controller_read_socket (f_str_t * in, void *arg) gint len, i, r; gchar *s, **params, *cmd, out_buf[128]; struct controller_command *command; - struct worker_task *task; + struct rspamd_task *task; struct mime_text_part *part; GList *cur = NULL; GTree *tokens = NULL; |