summaryrefslogtreecommitdiffstats
path: root/src/ufo-roof-read-socket.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/ufo-roof-read-socket.c')
-rw-r--r--src/ufo-roof-read-socket.c4
1 files changed, 2 insertions, 2 deletions
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];