aboutsummaryrefslogtreecommitdiff
path: root/libpipe/pq.h
diff options
context:
space:
mode:
authorSamuel Thibault <samuel.thibault@ens-lyon.org>2022-01-17 00:32:29 +0100
committerSamuel Thibault <samuel.thibault@ens-lyon.org>2022-01-17 00:43:09 +0100
commitf5fb7c713ea443469406a691e60a6f4567a4cb75 (patch)
treeb16d979915b5ad7e32ffe77ca5f5006dc639a16e /libpipe/pq.h
parentdd3048b2e483f66571cfa1b2ccebb2091b9ad990 (diff)
downloadhurd-f5fb7c713ea443469406a691e60a6f4567a4cb75.tar.gz
hurd-f5fb7c713ea443469406a691e60a6f4567a4cb75.tar.bz2
hurd-f5fb7c713ea443469406a691e60a6f4567a4cb75.zip
Fix const warnings
Now that the RPCs have const, this forces us cleaning our const-meant functions.
Diffstat (limited to 'libpipe/pq.h')
-rw-r--r--libpipe/pq.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/libpipe/pq.h b/libpipe/pq.h
index 7238ace0..c2f64613 100644
--- a/libpipe/pq.h
+++ b/libpipe/pq.h
@@ -68,7 +68,7 @@ struct packet
/* Sets PACKET's ports to be PORTS, of length NUM_PORTS. ENOMEM is returned
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 has any ports, deallocates them. */
void packet_dealloc_ports (struct packet *packet);
@@ -89,7 +89,7 @@ packet_readable (struct packet *packet)
/* Append the bytes in DATA, of length DATA_LEN, to what's already in 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);
/* Removes up to AMOUNT bytes from the beginning of the data in PACKET, and
puts it into *DATA, and the amount read into DATA_LEN. If more than the