aboutsummaryrefslogtreecommitdiffstats
path: root/apps
diff options
context:
space:
mode:
Diffstat (limited to 'apps')
-rw-r--r--apps/app_mp3.c2
-rw-r--r--apps/app_nbscat.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/apps/app_mp3.c b/apps/app_mp3.c
index 688be6a00..41e27f9b3 100644
--- a/apps/app_mp3.c
+++ b/apps/app_mp3.c
@@ -108,7 +108,7 @@ static int timed_read(int fd, void *data, int datalen, int timeout)
struct pollfd fds[1];
fds[0].fd = fd;
fds[0].events = POLLIN;
- res = poll(fds, 1, timeout);
+ res = ast_poll(fds, 1, timeout);
if (res < 1) {
ast_log(LOG_NOTICE, "Poll timed out/errored out with %d\n", res);
return -1;
diff --git a/apps/app_nbscat.c b/apps/app_nbscat.c
index dd071ef0e..112e01297 100644
--- a/apps/app_nbscat.c
+++ b/apps/app_nbscat.c
@@ -96,7 +96,7 @@ static int timed_read(int fd, void *data, int datalen)
struct pollfd fds[1];
fds[0].fd = fd;
fds[0].events = POLLIN;
- res = poll(fds, 1, 2000);
+ res = ast_poll(fds, 1, 2000);
if (res < 1) {
ast_log(LOG_NOTICE, "Selected timed out/errored out with %d\n", res);
return -1;