diff options
author | Mattias Andrée <maandree@kth.se> | 2016-07-11 00:31:13 +0200 |
---|---|---|
committer | Mattias Andrée <maandree@kth.se> | 2016-07-11 00:31:13 +0200 |
commit | 37777e89cd284e8cbd621969eeccc1e54972e4b0 (patch) | |
tree | fd89fac0151cd54c6dd60200d0fb187fa8b6e1c3 /src/ramps.c | |
parent | Sort outputs by name (diff) | |
download | coopgammad-37777e89cd284e8cbd621969eeccc1e54972e4b0.tar.gz coopgammad-37777e89cd284e8cbd621969eeccc1e54972e4b0.tar.bz2 coopgammad-37777e89cd284e8cbd621969eeccc1e54972e4b0.tar.xz |
Implement -p
Signed-off-by: Mattias Andrée <maandree@kth.se>
Diffstat (limited to 'src/ramps.c')
-rw-r--r-- | src/ramps.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/ramps.c b/src/ramps.c index 2c24b52..32c7994 100644 --- a/src/ramps.c +++ b/src/ramps.c @@ -40,7 +40,7 @@ extern char* argv0; * @param ramps_size The byte-size of ramps * @return The number of marshalled byte */ -size_t gamma_ramps_marshal(const union gamma_ramps* this, char* buf, size_t ramps_size) +size_t gamma_ramps_marshal(const union gamma_ramps* this, void* buf, size_t ramps_size) { if (buf != NULL) memcpy(buf, this->u8.red, ramps_size); @@ -57,7 +57,7 @@ size_t gamma_ramps_marshal(const union gamma_ramps* this, char* buf, size_t ramp * @param ramps_size The byte-size of ramps * @return The number of unmarshalled bytes, 0 on error */ -size_t gamma_ramps_unmarshal(union gamma_ramps* this, const char* buf, size_t ramps_size) +size_t gamma_ramps_unmarshal(union gamma_ramps* this, const void* buf, size_t ramps_size) { size_t depth = ramps_size / (this->u8.red_size + this->u8.green_size + this->u8.blue_size); int r = 0; |