From 57b3f2a3e8d671339646553c648cf3101bd0532d Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Thu, 10 Oct 2019 16:48:36 +0200 Subject: Minor style fix and comment improvement MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mattias Andrée --- cg-icc.c | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/cg-icc.c b/cg-icc.c index 4c2f494..3a29fbc 100644 --- a/cg-icc.c +++ b/cg-icc.c @@ -14,8 +14,9 @@ -/* Note, that EDID:s are 256 hexadecimals long, and - * a filename can only be 255 characters long. */ +/* Note, that EDID:s are at least 256 hexadecimals long, + * sometimes 512 hexadecimals long, and a filename can + * often only be 255 characters long. */ @@ -426,7 +427,8 @@ icc_uint8(const char *restrict content) * @param width The number of bytes with which the value is encoded * @return The value, decoded */ -static double icc_double(const char *restrict content, size_t width) +static double +icc_double(const char *restrict content, size_t width) { double ret = 0; size_t i; @@ -451,7 +453,8 @@ static double icc_double(const char *restrict content, size_t width) * @return Zero on success, -1 on error, -2 if no usable data is * available in the profile. */ -static int parse_icc(const char *restrict content, size_t n, libcoopgamma_ramps_t *ramps, libcoopgamma_depth_t *depth) +static int +parse_icc(const char *restrict content, size_t n, libcoopgamma_ramps_t *ramps, libcoopgamma_depth_t *depth) { uint32_t tag_name, tag_offset, tag_size, gamma_type; size_t n_channels, n_entries, entry_size; -- cgit v1.2.3-70-g09d2