mirror of
https://github.com/asterisk/asterisk.git
synced 2025-10-12 15:45:18 +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];
|
||||
#if 1
|
||||
DAHDI_BUFFERINFO bi;
|
||||
#endif
|
||||
#ifdef HAVE_PRI
|
||||
DAHDI_SPANINFO si;
|
||||
#endif
|
||||
int res;
|
||||
int span=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));
|
||||
|
Reference in New Issue
Block a user