From f5fb7c713ea443469406a691e60a6f4567a4cb75 Mon Sep 17 00:00:00 2001 From: Samuel Thibault Date: Mon, 17 Jan 2022 00:32:29 +0100 Subject: Fix const warnings Now that the RPCs have const, this forces us cleaning our const-meant functions. --- libpipe/pq.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'libpipe/pq.c') diff --git a/libpipe/pq.c b/libpipe/pq.c index fe7dd8ae..af380274 100644 --- a/libpipe/pq.c +++ b/libpipe/pq.c @@ -292,7 +292,7 @@ packet_dealloc_ports (struct packet *packet) if a memory allocation error occurred, otherwise, 0. */ error_t packet_set_ports (struct packet *packet, - mach_port_t *ports, size_t num_ports) + const mach_port_t *ports, size_t num_ports) { if (packet->num_ports > 0) packet_dealloc_ports (packet); @@ -333,7 +333,7 @@ packet_read_ports (struct packet *packet, and return the amount appended in AMOUNT if that's not the null pointer. */ error_t packet_write (struct packet *packet, - char *data, size_t data_len, size_t *amount) + const char *data, size_t data_len, size_t *amount) { error_t err = packet_ensure (packet, data_len); -- cgit v1.2.3