mirror of
https://github.com/asterisk/asterisk.git
synced 2025-10-14 00:24:05 +00:00
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: https://origsvn.digium.com/svn/asterisk/branches/1.4@133038 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -7184,9 +7184,6 @@ static struct dahdi_pvt *mkintf(int channel, const struct dahdi_chan_conf *conf,
|
|||||||
char fn[80];
|
char fn[80];
|
||||||
#if 1
|
#if 1
|
||||||
DAHDI_BUFFERINFO bi;
|
DAHDI_BUFFERINFO bi;
|
||||||
#endif
|
|
||||||
#ifdef HAVE_PRI
|
|
||||||
DAHDI_SPANINFO si;
|
|
||||||
#endif
|
#endif
|
||||||
int res;
|
int res;
|
||||||
int span=0;
|
int span=0;
|
||||||
@@ -7290,6 +7287,7 @@ static struct dahdi_pvt *mkintf(int channel, const struct dahdi_chan_conf *conf,
|
|||||||
destroy_dahdi_pvt(&tmp);
|
destroy_dahdi_pvt(&tmp);
|
||||||
return NULL;
|
return NULL;
|
||||||
} else {
|
} else {
|
||||||
|
DAHDI_SPANINFO si;
|
||||||
si.spanno = 0;
|
si.spanno = 0;
|
||||||
if (ioctl(tmp->subs[SUB_REAL].dfd,DAHDI_SPANSTAT,&si) == -1) {
|
if (ioctl(tmp->subs[SUB_REAL].dfd,DAHDI_SPANSTAT,&si) == -1) {
|
||||||
ast_log(LOG_ERROR, "Unable to get span status: %s\n", strerror(errno));
|
ast_log(LOG_ERROR, "Unable to get span status: %s\n", strerror(errno));
|
||||||
|
Reference in New Issue
Block a user