diff options
author | Christian Pointner <equinox@spreadspace.org> | 2014-09-30 21:24:14 +0200 |
---|---|---|
committer | Christian Pointner <equinox@spreadspace.org> | 2014-09-30 21:24:14 +0200 |
commit | c6bf8afcf01b2a0d75e3044b66a1ae53c4e2030a (patch) | |
tree | 528a6837e4a2b4d69987956d3274101c5c108cf2 /src/udp.c | |
parent | initial support for keepalives (diff) |
some cleanup
Diffstat (limited to 'src/udp.c')
-rw-r--r-- | src/udp.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -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; |