From: Anthony Minessale Date: Fri, 16 Sep 2011 17:13:25 +0000 (-0500) Subject: we need to fix this build system it masks errors X-Git-Tag: v1.2-rc1~51^2~74 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=44822df63d6fbd1c80b46b90aa8208efc393734b;p=thirdparty%2Ffreeswitch.git we need to fix this build system it masks errors --- diff --git a/libs/freetdm/src/detect_dtmf.c b/libs/freetdm/src/detect_dtmf.c index 62af298aef..34335256f0 100644 --- a/libs/freetdm/src/detect_dtmf.c +++ b/libs/freetdm/src/detect_dtmf.c @@ -6,6 +6,7 @@ int main(int argc, char *argv[]) int fd, b; short sln[512] = {0}; teletone_dtmf_detect_state_t dtmf_detect = {0}; + teletone_hit_type_t hit; if (argc < 2) { fprintf(stderr, "Arg Error!\n"); @@ -25,7 +26,7 @@ int main(int argc, char *argv[]) teletone_dtmf_detect(&dtmf_detect, sln, b / 2); if ((hit = teletone_dtmf_get(&dtmf_detect, &digit_char, &dur))) { - char *hs = NULL; + const char *hs = NULL; switch(hit) { @@ -40,9 +41,11 @@ int main(int argc, char *argv[]) case TT_HIT_END: hs = "end"; break; + default: + break; } - printf("%s digit: %s\n", hs, digit_str); + printf("%s digit: %c\n", hs, digit_char); } } close(fd);