aboutsummaryrefslogtreecommitdiffstats
path: root/libgamma_internal_translated_ramp_get_.c
diff options
context:
space:
mode:
authorMattias Andrée <maandree@kth.se>2021-03-07 22:51:21 +0100
committerMattias Andrée <maandree@kth.se>2021-03-07 22:51:21 +0100
commitbaa6a1cf7979c095c1081daa2a2d1134c76d2f1b (patch)
treed0525238a334091eb4d241b0b83da1a4a1793d5b /libgamma_internal_translated_ramp_get_.c
parentStart replacing info manual with man pages (diff)
downloadlibgamma-baa6a1cf7979c095c1081daa2a2d1134c76d2f1b.tar.gz
libgamma-baa6a1cf7979c095c1081daa2a2d1134c76d2f1b.tar.bz2
libgamma-baa6a1cf7979c095c1081daa2a2d1134c76d2f1b.tar.xz
misc
Signed-off-by: Mattias Andrée <maandree@kth.se>
Diffstat (limited to '')
-rw-r--r--libgamma_internal_translated_ramp_get_.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/libgamma_internal_translated_ramp_get_.c b/libgamma_internal_translated_ramp_get_.c
index 53ca8a4..852f6c9 100644
--- a/libgamma_internal_translated_ramp_get_.c
+++ b/libgamma_internal_translated_ramp_get_.c
@@ -24,12 +24,12 @@
* error identifier provided by this library
*/
int
-libgamma_internal_translated_ramp_get_(libgamma_crtc_state_t *restrict this, gamma_ramps_any_t *restrict ramps,
+libgamma_internal_translated_ramp_get_(struct libgamma_crtc_state *restrict this, union gamma_ramps_any *restrict ramps,
signed depth_user, signed depth_system, get_ramps_any_fun *fun)
{
size_t n;
int r;
- gamma_ramps_any_t ramps_sys;
+ union gamma_ramps_any ramps_sys;
uint64_t *restrict ramps_full;
/* Allocate ramps with proper data type */
@@ -43,7 +43,7 @@ libgamma_internal_translated_ramp_get_(libgamma_crtc_state_t *restrict this, gam
}
/* Allocate intermediary ramps */
- ramps_full = malloc(n * sizeof(uint64_t));
+ ramps_full = malloc(n * sizeof(*ramps_full));
if (!ramps_full) {
free(ramps_sys.ANY.red);
return LIBGAMMA_ERRNO_SET;