aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorrussell <russell@f38db490-d61c-443f-a65b-d21fe96a405b>2008-12-16 14:18:45 +0000
committerrussell <russell@f38db490-d61c-443f-a65b-d21fe96a405b>2008-12-16 14:18:45 +0000
commit83e19f90226aef20de463ba68d2bc7186ecf0372 (patch)
treec5c4510f07239af05cc5bc7fea3e0cfc59e67b50
parent89b27969ae84e734533cf6ca75c46fa952dd3e20 (diff)
Merged revisions 164602 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk ........ r164602 | russell | 2008-12-16 08:17:45 -0600 (Tue, 16 Dec 2008) | 7 lines Fix usage of the DAHDI_VMWI ioctl. (closes issue #14090) Reported by: alecdavis Patches: chan_dahdi.VMWI_ioctl.diff.txt uploaded by alecdavis (license 585) ........ git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.6.1@164604 f38db490-d61c-443f-a65b-d21fe96a405b
-rw-r--r--channels/chan_dahdi.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/channels/chan_dahdi.c b/channels/chan_dahdi.c
index e12b52d86..4f80e5a62 100644
--- a/channels/chan_dahdi.c
+++ b/channels/chan_dahdi.c
@@ -7994,7 +7994,7 @@ static void *do_monitor(void *data)
pthread_attr_t attr;
pthread_t threadid;
struct mwi_thread_data *mtd;
- res2 = ioctl(last->subs[SUB_REAL].dfd, DAHDI_VMWI, res);
+ res2 = ioctl(last->subs[SUB_REAL].dfd, DAHDI_VMWI, &res);
if (res2) {
/* TODO: This message will ALWAYS be generated on some cards; any way to restrict it to those cards where it is interesting? */
ast_debug(3, "Unable to control message waiting led on channel %d: %s\n", last->channel, strerror(errno));