X-Git-Url: http://git.eversberg.eu/gitweb.cgi?p=lcr.git;a=blobdiff_plain;f=chan_lcr.c;h=a81e48db126ae3aa7f3675c89ef0b06fd21b14e5;hp=a2951ae2c384a7e3c603be4d1bfaf4b72e074b15;hb=ad9a780ce71095bd785eeea8cd6f58606c66ce79;hpb=14da759465d6597908f27a31ec14eda3d5a47520 diff --git a/chan_lcr.c b/chan_lcr.c index a2951ae..a81e48d 100644 --- a/chan_lcr.c +++ b/chan_lcr.c @@ -136,6 +136,13 @@ it is called from ast_channel process which has already locked ast_channel. #ifdef LCR_FOR_ASTERISK #include #endif + +/* + * Fwd declare struct ast_channel to get rid of gcc warning about + * incompatible pointer type passed to ast_register_application2. + */ +struct ast_channel; + #include #include #include @@ -2948,7 +2955,7 @@ static int lcr_indicate(struct ast_channel *ast, int cond, const void *data, siz union parameter newparam; int res = 0; struct chan_call *call; - const struct tone_zone_sound *ts = NULL; + const struct ast_tone_zone_sound *ts = NULL; ast_mutex_lock(&chan_lock); #if ASTERISK_VERSION_NUM < 110000