summaryrefslogtreecommitdiff
path: root/apps/app_flash.c
diff options
context:
space:
mode:
Diffstat (limited to 'apps/app_flash.c')
-rw-r--r--apps/app_flash.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/app_flash.c b/apps/app_flash.c
index 283953b39..1ee834bbf 100644
--- a/apps/app_flash.c
+++ b/apps/app_flash.c
@@ -79,7 +79,7 @@ static int flash_exec(struct ast_channel *chan, const char *data)
int x;
struct dahdi_params dahdip;
- if (strcasecmp(chan->tech->type, "DAHDI")) {
+ if (strcasecmp(ast_channel_tech(chan)->type, "DAHDI")) {
ast_log(LOG_WARNING, "%s is not a DAHDI channel\n", ast_channel_name(chan));
return -1;
}