From c6bf8afcf01b2a0d75e3044b66a1ae53c4e2030a Mon Sep 17 00:00:00 2001 From: Christian Pointner Date: Tue, 30 Sep 2014 21:24:14 +0200 Subject: some cleanup --- src/udp.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/udp.c') diff --git a/src/udp.c b/src/udp.c index 26d090f..78b09aa 100644 --- a/src/udp.c +++ b/src/udp.c @@ -121,11 +121,11 @@ static void udpsink_remove_client(struct sockaddr_storage *addr, socklen_t addrl g_free(client); } -static gboolean on_udp_desc_ready(gint fd, GIOCondition cond, gpointer user_data) +static gboolean on_udpsink_ready(gint fd, GIOCondition cond, gpointer user_data) { struct udp_sink* sink = (struct udp_sink*)user_data; if(!sink || !(sink->udp_)) { - log_printf(WARNING, "File descriptor %d is ready for reading - but supplied element is NULL removing callback", fd); + log_printf(WARNING, "File descriptor %d is ready for reading but the supplied element is NULL - removing callback", fd); return FALSE; } @@ -198,7 +198,7 @@ static gboolean attach_udpsink(struct udp_sink* sink, const char* name, const ch g_object_get(G_OBJECT(sink->udp_), prop, &sock, NULL); int fd = g_socket_get_fd(sock); - guint id = g_unix_fd_add(fd, G_IO_IN, on_udp_desc_ready, sink); + guint id = g_unix_fd_add(fd, G_IO_IN, on_udpsink_ready, sink); if(id <= 0) { log_printf(ERROR, "Error while adding %s file descriptor (%d) to main loop", name, fd); return FALSE; -- cgit v1.2.3