From 23f22348c5281fff685c1fa89255e7e1e76266a4 Mon Sep 17 00:00:00 2001 From: "Suren A. Chilingaryan" Date: Sun, 17 Nov 2019 10:46:03 +0100 Subject: cmake build and gcc warnings --- src/ufo-roof-read-socket.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/ufo-roof-read-socket.c') diff --git a/src/ufo-roof-read-socket.c b/src/ufo-roof-read-socket.c index b72e9d0..f213d99 100644 --- a/src/ufo-roof-read-socket.c +++ b/src/ufo-roof-read-socket.c @@ -29,7 +29,7 @@ static void ufo_roof_read_socket_free(UfoRoofReadInterface *iface) { } } -static guint ufo_roof_read_socket(UfoRoofReadInterface *iface, void *buf, GError **error) { +static guint ufo_roof_read_socket(UfoRoofReadInterface *iface, uint8_t *buf, GError **error) { struct timespec timeout_ts; UfoRoofReadSocket *reader = (UfoRoofReadSocket*)iface; @@ -44,7 +44,7 @@ static guint ufo_roof_read_socket(UfoRoofReadInterface *iface, void *buf, GError // FIXME: Is it optimal? Auto-tune max_packets? Combine read & build? memset(msg, 0, sizeof(msg)); memset(msgvec, 0, sizeof(msgvec)); - for (int i = 0; i < cfg->max_packets; i++) { + for (guint i = 0; i < cfg->max_packets; i++) { msgvec[i].iov_base = buf + i * cfg->max_packet_size; msgvec[i].iov_len = cfg->max_packet_size; msg[i].msg_hdr.msg_iov = &msgvec[i]; -- cgit v1.2.3