diff options
author | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2022-01-17 00:32:29 +0100 |
---|---|---|
committer | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2022-01-17 00:43:09 +0100 |
commit | f5fb7c713ea443469406a691e60a6f4567a4cb75 (patch) | |
tree | b16d979915b5ad7e32ffe77ca5f5006dc639a16e /libpipe/pipe.h | |
parent | dd3048b2e483f66571cfa1b2ccebb2091b9ad990 (diff) | |
download | hurd-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/pipe.h')
-rw-r--r-- | libpipe/pipe.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/libpipe/pipe.h b/libpipe/pipe.h index eda38d24..1b1ef82f 100644 --- a/libpipe/pipe.h +++ b/libpipe/pipe.h @@ -51,7 +51,7 @@ struct pipe_class char **data, size_t *data_len, size_t amount); /* Write DATA &c into the packet queue PQ. */ error_t (*write)(struct pq *pq, void *source, - char *data, size_t data_len, size_t *amount); + const char *data, size_t data_len, size_t *amount); }; /* pipe_class flags */ @@ -377,9 +377,9 @@ pipe_drain (struct pipe *pipe) of the data, to be provided to any readers of it; if no reader ever reads it, it's deallocated by calling pipe_dealloc_addr. */ error_t pipe_send (struct pipe *pipe, int noblock, void *source, - char *data, size_t data_len, - char *control, size_t control_len, - mach_port_t *ports, size_t num_ports, + const char *data, size_t data_len, + const char *control, size_t control_len, + const mach_port_t *ports, size_t num_ports, size_t *amount); /* Writes up to LEN bytes of DATA, to PIPE, which should be locked, and |