diff options
author | kpfleming <kpfleming@f38db490-d61c-443f-a65b-d21fe96a405b> | 2008-07-23 20:42:30 +0000 |
---|---|---|
committer | kpfleming <kpfleming@f38db490-d61c-443f-a65b-d21fe96a405b> | 2008-07-23 20:42:30 +0000 |
commit | 8ec1a1b17cbd659efff717d65267cd0c055d19f9 (patch) | |
tree | d1921955cd0d82c5d4d7ee8e54d46a601d82725d /channels | |
parent | 69b8561975b4ad4220bba79e25eb746e9893df2e (diff) |
make some more changes to the dahdi/zap channel name support stuff to ensure allthe globals are 'const', and clean up mmichelson's changes to app_chanspy to simplify the code
git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@133226 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'channels')
-rw-r--r-- | channels/chan_dahdi.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/channels/chan_dahdi.c b/channels/chan_dahdi.c index 13d914f64..e1acd1bd3 100644 --- a/channels/chan_dahdi.c +++ b/channels/chan_dahdi.c @@ -5234,7 +5234,7 @@ static struct ast_channel *dahdi_new(struct dahdi_pvt *i, int state, int startpb int features; char *b2 = NULL; DAHDI_PARAMS ps; - char chanprefix[dahdi_chan_name_len + 4]; + char chanprefix[*dahdi_chan_name_len + 4]; if (i->subs[index].owner) { ast_log(LOG_WARNING, "Channel %d already has a %s call\n", i->channel,subnames[index]); @@ -10584,7 +10584,7 @@ static int dahdi_action_restart(struct mansession *s, const struct message *m) } #define local_astman_unregister(a) do { \ - if (dahdi_chan_mode == CHAN_DAHDI_PLUS_ZAP_MODE) { \ + if (*dahdi_chan_mode == CHAN_DAHDI_PLUS_ZAP_MODE) { \ ast_manager_unregister("DAHDI" a); \ } \ ast_manager_unregister("Zap" a); \ @@ -11583,7 +11583,7 @@ static int setup_dahdi(int reload) } #define local_astman_register(a, b, c, d) do { \ - if (dahdi_chan_mode == CHAN_DAHDI_PLUS_ZAP_MODE) { \ + if (*dahdi_chan_mode == CHAN_DAHDI_PLUS_ZAP_MODE) { \ ast_manager_register("DAHDI" a, b, dahdi_ ## c, d); \ } \ ast_manager_register("Zap" a, b, zap_ ## c, d); \ @@ -11611,7 +11611,7 @@ static int load_module(void) if ((res = setup_dahdi(0))) { return AST_MODULE_LOAD_DECLINE; } - if (dahdi_chan_mode == CHAN_DAHDI_PLUS_ZAP_MODE) { + if (*dahdi_chan_mode == CHAN_DAHDI_PLUS_ZAP_MODE) { chan_tech = &dahdi_tech; } else { chan_tech = &zap_tech; |