diff options
author | mmichelson <mmichelson@f38db490-d61c-443f-a65b-d21fe96a405b> | 2008-07-23 17:50:01 +0000 |
---|---|---|
committer | mmichelson <mmichelson@f38db490-d61c-443f-a65b-d21fe96a405b> | 2008-07-23 17:50:01 +0000 |
commit | fb5f0eb34420cd9538ba62eb459516cacf06210f (patch) | |
tree | dfe93ce0c0929a7724cd8f1575f418c297d5d30c /channels/chan_dahdi.c | |
parent | cce4c1486b226d99a8bc6c04cb27fda6a565b9f8 (diff) |
Small cleanup. Move the declaration of the DAHDI_SPANINFO
variable to the block where it is used. This allows one
less #ifdef HAVE_PRI to clutter things up.
Thanks to Tzafrir for pointing this out on #asterisk-dev
git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@133038 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'channels/chan_dahdi.c')
-rw-r--r-- | channels/chan_dahdi.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/channels/chan_dahdi.c b/channels/chan_dahdi.c index 08048baff..722e398b8 100644 --- a/channels/chan_dahdi.c +++ b/channels/chan_dahdi.c @@ -7185,9 +7185,6 @@ static struct dahdi_pvt *mkintf(int channel, const struct dahdi_chan_conf *conf, #if 1 DAHDI_BUFFERINFO bi; #endif -#ifdef HAVE_PRI - DAHDI_SPANINFO si; -#endif int res; int span=0; int here = 0; @@ -7290,6 +7287,7 @@ static struct dahdi_pvt *mkintf(int channel, const struct dahdi_chan_conf *conf, destroy_dahdi_pvt(&tmp); return NULL; } else { + DAHDI_SPANINFO si; si.spanno = 0; if (ioctl(tmp->subs[SUB_REAL].dfd,DAHDI_SPANSTAT,&si) == -1) { ast_log(LOG_ERROR, "Unable to get span status: %s\n", strerror(errno)); |