From 74fe4bb1ece7868b7897bad77b656c4d31a9dd96 Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Mon, 4 Jan 2016 23:09:31 +0100 Subject: m MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mattias Andrée --- src/blackbody.c | 4 ++-- src/libred.h | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/blackbody.c b/src/blackbody.c index 92597ae..aacde5d 100644 --- a/src/blackbody.c +++ b/src/blackbody.c @@ -105,7 +105,7 @@ static void ciexyy_to_srgb(double x, double y, double Y, double *r, double *g, d * @param g Output parameter for the green value. * @param b Output parameter for the blue value. */ -static void interpolate(double x1, double y1, double x2, double y2, double temp, double *r, double *g, double *b) +static void interpolate(double x1, double y1, double x2, double y2, double temp, double* r, double* g, double* b) { double weight = fmod(temp, (double)LIBRED_DELTA_TEMPERATURE) / (double)LIBRED_DELTA_TEMPERATURE; double x = x1 * (1 - weight) + x2 * weight; @@ -127,7 +127,7 @@ static void interpolate(double x1, double y1, double x2, double y2, double temp, * @throws EDOM The selected temperature is below 1000 K. * @throws Any error specified for pread(3). */ -int libred_get_colour(long int temp, double *r, double *g, double *b) +int libred_get_colour(long int temp, double* r, double* g, double* b) { double values[10]; /* low:x,y,r,g,b + high:x,y,r,g,b */ off_t offset; diff --git a/src/libred.h b/src/libred.h index 23075e2..557b5ef 100644 --- a/src/libred.h +++ b/src/libred.h @@ -159,7 +159,7 @@ void libred_term_colour(void); * @throws EDOM The selected temperature is below 1000 K. * @throws Any error specified for pread(3). */ -int libred_get_colour(long int temp, double *r, double *g, double *b); +int libred_get_colour(long int, double*, double*, double*); -- cgit v1.2.3-70-g09d2