diff options
author | Mattias Andrée <maandree@member.fsf.org> | 2016-01-04 23:09:31 +0100 |
---|---|---|
committer | Mattias Andrée <maandree@member.fsf.org> | 2016-01-04 23:09:31 +0100 |
commit | 74fe4bb1ece7868b7897bad77b656c4d31a9dd96 (patch) | |
tree | 69c733ab08450730d9a53cb2c7aaaac0905b0ff0 /src | |
parent | make the file descriptor visible (diff) | |
download | libred-74fe4bb1ece7868b7897bad77b656c4d31a9dd96.tar.gz libred-74fe4bb1ece7868b7897bad77b656c4d31a9dd96.tar.bz2 libred-74fe4bb1ece7868b7897bad77b656c4d31a9dd96.tar.xz |
m
Signed-off-by: Mattias Andrée <maandree@member.fsf.org>
Diffstat (limited to 'src')
-rw-r--r-- | src/blackbody.c | 4 | ||||
-rw-r--r-- | 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*); |