summaryrefslogtreecommitdiff
path: root/modules/dtmfio/dtmfio.c
diff options
context:
space:
mode:
authorAlfred E. Heggestad <aeh@db.org>2014-03-23 18:54:48 +0100
committerAlfred E. Heggestad <aeh@db.org>2014-03-23 18:54:48 +0100
commite2aecaed4b7d3d6af0f81e31eaf7546887bb366c (patch)
treee8fd490d999ac5a44e0ec4c0ada5e159539a1f6e /modules/dtmfio/dtmfio.c
parent4adbad4d48698806ba88e777187a1e9905844b40 (diff)
dtmfio: fix warnings and improve detection
Diffstat (limited to 'modules/dtmfio/dtmfio.c')
-rw-r--r--modules/dtmfio/dtmfio.c9
1 files changed, 7 insertions, 2 deletions
diff --git a/modules/dtmfio/dtmfio.c b/modules/dtmfio/dtmfio.c
index 10fdf43..5d9534c 100644
--- a/modules/dtmfio/dtmfio.c
+++ b/modules/dtmfio/dtmfio.c
@@ -65,6 +65,9 @@ static const char *DTMF_OUT = "/tmp/dtmf.out";
static void dtmf_handler(struct call *call, char key, void *arg)
{
+ (void)call;
+ (void)arg;
+
if ( key != 0 ) {
fprintf(fd, "%c", key);
fflush(fd);
@@ -78,6 +81,10 @@ static void ua_event_handler(struct ua *ua,
const char *prm,
void *arg )
{
+ (void)ua;
+ (void)prm;
+ (void)arg;
+
if ( ev == UA_EVENT_CALL_ESTABLISHED ) {
fprintf(fd, "E");
fflush(fd);
@@ -88,8 +95,6 @@ static void ua_event_handler(struct ua *ua,
fprintf(fd, "F");
fflush(fd);
}
-
- return;
}