aboutsummaryrefslogtreecommitdiffstats
path: root/src/lua/lua_classifier.c
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@rambler-co.ru>2010-10-06 20:03:57 +0400
committerVsevolod Stakhov <vsevolod@rambler-co.ru>2010-10-06 20:03:57 +0400
commit6b306ab8752befc28d259be55495f8249cc2df24 (patch)
tree0fa3d471aef61925563709e0f8ee5667b57c7a9d /src/lua/lua_classifier.c
parent8d0053734fb5a4ccd8c3bda731e6b7c8261c6f67 (diff)
downloadrspamd-6b306ab8752befc28d259be55495f8249cc2df24.tar.gz
rspamd-6b306ab8752befc28d259be55495f8249cc2df24.zip
Fixes types (use glib ones) no functional change.
Now all comments in commit logs beginning with '*' would be included in changelog, so important changes would be separated from small ones.
Diffstat (limited to 'src/lua/lua_classifier.c')
-rw-r--r--src/lua/lua_classifier.c18
1 files changed, 9 insertions, 9 deletions
diff --git a/src/lua/lua_classifier.c b/src/lua/lua_classifier.c
index 86378c5e5..f7ce173a7 100644
--- a/src/lua/lua_classifier.c
+++ b/src/lua/lua_classifier.c
@@ -48,7 +48,7 @@ static const struct luaL_reg statfilelib_m[] = {
struct classifier_callback_data {
lua_State *L;
- const char *name;
+ const gchar *name;
};
static struct statfile* lua_check_statfile (lua_State * L);
@@ -73,7 +73,7 @@ call_classifier_pre_callbacks (struct classifier_config *ccf, struct worker_task
struct classifier_config **pccf;
struct worker_task **ptask;
struct statfile *st;
- int i, len;
+ gint i, len;
/* Go throught all callbacks and call them, appending results to list */
cur = g_list_first (ccf->pre_callbacks);
@@ -153,12 +153,12 @@ call_classifier_post_callbacks (struct classifier_config *ccf, struct worker_tas
}
-static int
+static gint
lua_classifier_register_pre_callback (lua_State *L)
{
struct classifier_config *ccf = lua_check_classifier (L);
struct classifier_callback_data *cd;
- const char *name;
+ const gchar *name;
if (ccf) {
name = luaL_checkstring (L, 2);
@@ -174,12 +174,12 @@ lua_classifier_register_pre_callback (lua_State *L)
}
-static int
+static gint
lua_classifier_register_post_callback (lua_State *L)
{
struct classifier_config *ccf = lua_check_classifier (L);
struct classifier_callback_data *cd;
- const char *name;
+ const gchar *name;
if (ccf) {
name = luaL_checkstring (L, 2);
@@ -195,7 +195,7 @@ lua_classifier_register_post_callback (lua_State *L)
}
/* Return table of statfiles indexed by theirs name */
-static int
+static gint
lua_classifier_get_statfiles (lua_State *L)
{
struct classifier_config *ccf = lua_check_classifier (L);
@@ -237,7 +237,7 @@ lua_check_statfile (lua_State * L)
/* Open functions */
-int
+gint
luaopen_classifier (lua_State * L)
{
lua_newclass (L, "rspamd{classifier}", classifierlib_m);
@@ -246,7 +246,7 @@ luaopen_classifier (lua_State * L)
return 1;
}
-int
+gint
luaopen_statfile (lua_State * L)
{
lua_newclass (L, "rspamd{statfile}", statfilelib_m);