aboutsummaryrefslogtreecommitdiffstats
path: root/ipc.c
diff options
context:
space:
mode:
authorWilmer van der Gaast <wilmer@gaast.net>2006-03-01 23:17:57 +0100
committerWilmer van der Gaast <wilmer@gaast.net>2006-03-01 23:17:57 +0100
commit5e713f695f93f7dc88f225bf6a8cd16e228eff11 (patch)
treea0d02307edc738b5dae9ee13c0d3a0b35a520bb5 /ipc.c
parent7cf85e77cf36c2d582fad168996825aae82c9b85 (diff)
Added a little comment for this scary cast. (-:
Diffstat (limited to 'ipc.c')
-rw-r--r--ipc.c4
1 files changed, 4 insertions, 0 deletions
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] )