aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/blackbody.c4
-rw-r--r--src/libred.h2
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*);