X-Git-Url: http://git.eversberg.eu/gitweb.cgi?p=lcr.git;a=blobdiff_plain;f=chan_lcr.c;h=4e93db13f1323ab76928edb8253389cbce247e56;hp=a2951ae2c384a7e3c603be4d1bfaf4b72e074b15;hb=refs%2Fheads%2Fholger%2Fcleaning-rebased;hpb=14da759465d6597908f27a31ec14eda3d5a47520 diff --git a/chan_lcr.c b/chan_lcr.c index a2951ae..4e93db1 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 @@ -2081,7 +2088,7 @@ static #if ASTERISK_VERSION_NUM < 100000 struct ast_channel *lcr_request(const char *type, format_t format, const struct ast_channel *requestor, void *data, int *cause) #else -struct ast_channel *lcr_request(const char *type, struct ast_format_cap *format, struct ast_channel *requestor, void *data, int *cause) +struct ast_channel *lcr_request(const char *type, struct ast_format_cap *format, const struct ast_channel *requestor, void *data, int *cause) #endif #else struct ast_channel *lcr_request(const char *type, int format, void *data, int *cause) @@ -2090,8 +2097,8 @@ struct ast_channel *lcr_request(const char *type, int format, void *data, int *c char exten[256], *dial, *interface, *opt; struct ast_channel *ast; struct chan_call *call; - struct ast_party_redirecting *req_redir; - struct ast_party_caller *req_caller; + const struct ast_party_redirecting *req_redir; + const struct ast_party_caller *req_caller; ast_mutex_lock(&chan_lock); CDEBUG(NULL, NULL, "Received request from Asterisk. (data=%s)\n", (char *)data); @@ -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