diff src/indexer/indexer-client.c @ 14921:d3db2ba15d00

Removed CONTEXT_TYPE_SAFETY macro and reimplemented its functionality better. gcc/clang now gives a compiler error in many places if callback isn't exactly what was expected. It's also now much easier to add more of these checks.
author Timo Sirainen <tss@iki.fi>
date Sun, 19 Aug 2012 16:17:32 +0300
parents ca37d1577291
children 90710c6c3beb
line wrap: on
line diff
--- a/src/indexer/indexer-client.c	Sun Aug 19 14:21:37 2012 +0300
+++ b/src/indexer/indexer-client.c	Sun Aug 19 16:17:32 2012 +0300
@@ -147,9 +147,8 @@
 	}
 }
 
-static void indexer_client_input(void *context)
+static void indexer_client_input(struct indexer_client *client)
 {
-	struct indexer_client *client = context;
 	const char *line, *const *args, *error;
 
 	switch (i_stream_read(client->input)) {