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 7cacc1e77..1f550a1dd 100644
--- a/apps/app_mp3.c
+++ b/apps/app_mp3.c
@@ -131,7 +131,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 d9a2dd402..841d8a375 100644
--- a/apps/app_nbscat.c
+++ b/apps/app_nbscat.c
@@ -123,7 +123,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;