static void dahdi_enable_ec(struct dahdi_pvt *p)
{
- int x;
int res;
if (!p)
return;
/* Fall through */
#ifdef HAVE_SS7
case SIG_SS7:
- x = 1;
- res = ioctl(p->subs[SUB_REAL].dfd, DAHDI_AUDIOMODE, &x);
- if (res)
- ast_log(LOG_WARNING, "Unable to enable audio mode on channel %d (%s)\n", p->channel, strerror(errno));
+ {
+ int x = 1;
+ res = ioctl(p->subs[SUB_REAL].dfd,
+ DAHDI_AUDIOMODE, &x);
+ if (res)
+ ast_log(LOG_WARNING,
+ "Unable to enable audio mode on channel %d (%s)\n",
+ p->channel, strerror(errno));
+ }
#endif
break;
default:
static inline int dahdi_confmute(struct dahdi_pvt *p, int muted)
{
- int x, y, res;
+ int x, res;
x = muted;
switch (p->sig) {
/* Fall through */
#ifdef HAVE_SS7
case SIG_SS7:
- y = 1;
- res = ioctl(p->subs[SUB_REAL].dfd, DAHDI_AUDIOMODE, &y);
- if (res)
- ast_log(LOG_WARNING, "Unable to set audio mode on %d: %s\n", p->channel, strerror(errno));
+ {
+ int y = 1;
+ res = ioctl(p->subs[SUB_REAL].dfd, DAHDI_AUDIOMODE, &y);
+ if (res)
+ ast_log(LOG_WARNING, "Unable to set audio mode on %d: %s\n",
+ p->channel, strerror(errno));
+ }
#endif
break;
default: