summaryrefslogtreecommitdiff
path: root/apps/osc.c
diff options
context:
space:
mode:
authorChristian Pointner <equinox@spreadspace.org>2015-10-12 04:24:28 +0200
committerChristian Pointner <equinox@spreadspace.org>2015-10-12 04:24:28 +0200
commit31b2b621cff0a9ca5f3be9b06ef12536ae17d65d (patch)
tree8d9f80e59c0f0b230b9553e87ec285c250da449d /apps/osc.c
parentlanguage specific done data (diff)
done data hangling for midi works now
Diffstat (limited to 'apps/osc.c')
-rw-r--r--apps/osc.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/apps/osc.c b/apps/osc.c
index 5d656b9..1dbb53e 100644
--- a/apps/osc.c
+++ b/apps/osc.c
@@ -72,7 +72,7 @@ int osc_get_poll_fd_count(osc_t* o)
int osc_get_poll_fds(osc_t* o, struct pollfd *pfds, int npfds)
{
- assert(npfds == 1);
+ assert(o && pfds && npfds == 1);
pfds[0].fd = lo_server_get_socket_fd(o->server_);
pfds[0].events = POLLIN;
@@ -83,7 +83,7 @@ int osc_get_poll_fds(osc_t* o, struct pollfd *pfds, int npfds)
int osc_handle_revents(osc_t* o, struct pollfd *pfds, int npfds, mixer_t* x)
{
- assert(npfds == 1);
+ assert(o && pfds && npfds == 1);
if(pfds[0].revents & (POLLERR | POLLHUP | POLLNVAL)) {
error(0, 0, "OSC: got POLLERR, POLLHUP or POLLNVAL");