From 5e713f695f93f7dc88f225bf6a8cd16e228eff11 Mon Sep 17 00:00:00 2001 From: Wilmer van der Gaast Date: Wed, 1 Mar 2006 23:17:57 +0100 Subject: Added a little comment for this scary cast. (-: --- ipc.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'ipc.c') diff --git a/ipc.c b/ipc.c index 778f74c8..60caba3e 100644 --- a/ipc.c +++ b/ipc.c @@ -33,6 +33,10 @@ static char *statefile = NULL; static void ipc_master_cmd_client( irc_t *data, char **cmd ) { + /* Normally data points at an irc_t block, but for the IPC master + this is different. We think this scary cast is better than + creating a new command_t structure, just to make the compiler + happy. */ struct bitlbee_child *child = (void*) data; if( child && cmd[1] ) -- cgit v1.2.3