summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCyrille Bagard <nocbos@gmail.com>2018-05-12 21:48:43 (GMT)
committerCyrille Bagard <nocbos@gmail.com>2018-05-12 21:48:43 (GMT)
commitaba51093c8ebe4b0550557281f8d0d025027b1cb (patch)
treee8ffc50572953c699a50e0281bb60c11b8f91d82
parentcde1e25f28ec5ce5672dd549d332cd9986a19835 (diff)
Fixed minor mistakes in declarations.
-rw-r--r--src/common/io.c4
-rw-r--r--src/common/io.h4
2 files changed, 4 insertions, 4 deletions
diff --git a/src/common/io.c b/src/common/io.c
index 457e3c5..3ff8278 100644
--- a/src/common/io.c
+++ b/src/common/io.c
@@ -56,7 +56,7 @@
* *
******************************************************************************/
-bool safe_read(int fd, const void *buf, size_t count)
+bool safe_read(int fd, void *buf, size_t count)
{
uint8_t *iter; /* Données en attente */
size_t remaining; /* Quantité restante */
@@ -106,7 +106,7 @@ bool safe_read(int fd, const void *buf, size_t count)
* *
******************************************************************************/
-ssize_t safe_read_partial(int fd, const void *buf, size_t max)
+ssize_t safe_read_partial(int fd, void *buf, size_t max)
{
ssize_t result; /* Quantité lue à remonter */
uint8_t *iter; /* Données en attente */
diff --git a/src/common/io.h b/src/common/io.h
index d70c64a..f6b7e51 100644
--- a/src/common/io.h
+++ b/src/common/io.h
@@ -33,10 +33,10 @@
/* Lit des données depuis un flux local. */
-bool safe_read(int, const void *, size_t);
+bool safe_read(int, void *, size_t);
/* Lit des données depuis un flux local. */
-ssize_t safe_read_partial(int, const void *, size_t);
+ssize_t safe_read_partial(int, void *, size_t);
/* Ecrit des données dans un flux local. */
bool safe_write(int, const void *, size_t);