aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMattias Andrée <maandree@kth.se>2016-08-27 18:02:16 +0200
committerMattias Andrée <maandree@kth.se>2016-08-27 18:02:16 +0200
commitd7d2564b83f1eb13704cce6333503da7d764ba72 (patch)
treee1590e30530d1190cb0e30813c502579620b0110
parentdoc (diff)
downloadcg-tools-d7d2564b83f1eb13704cce6333503da7d764ba72.tar.gz
cg-tools-d7d2564b83f1eb13704cce6333503da7d764ba72.tar.bz2
cg-tools-d7d2564b83f1eb13704cce6333503da7d764ba72.tar.xz
use static
Signed-off-by: Mattias Andrée <maandree@kth.se>
-rw-r--r--src/cg-icc.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/cg-icc.c b/src/cg-icc.c
index 24aa5cb..76dd0b0 100644
--- a/src/cg-icc.c
+++ b/src/cg-icc.c
@@ -140,7 +140,7 @@ int handle_args(int argc, char* argv[], char* method, char* site,
* @param content The beginning of the encoded integer
* @return The integer, decoded
*/
-uint64_t icc_uint64(const char* restrict content)
+static uint64_t icc_uint64(const char* restrict content)
{
uint64_t rc;
rc = (uint64_t)(unsigned char)(content[0]), rc <<= 8;
@@ -161,7 +161,7 @@ uint64_t icc_uint64(const char* restrict content)
* @param content The beginning of the encoded integer
* @return The integer, decoded
*/
-uint32_t icc_uint32(const char* restrict content)
+static uint32_t icc_uint32(const char* restrict content)
{
uint32_t rc;
rc = (uint32_t)(unsigned char)(content[0]), rc <<= 8;
@@ -178,7 +178,7 @@ uint32_t icc_uint32(const char* restrict content)
* @param content The beginning of the encoded integer
* @return The integer, decoded
*/
-uint16_t icc_uint16(const char* restrict content)
+static uint16_t icc_uint16(const char* restrict content)
{
uint16_t rc;
rc = (uint16_t)(unsigned char)(content[0]), rc <<= 8;
@@ -193,7 +193,7 @@ uint16_t icc_uint16(const char* restrict content)
* @param content The beginning of the encoded integer
* @return The integer, decoded
*/
-uint16_t icc_uint8(const char* restrict content)
+static uint16_t icc_uint8(const char* restrict content)
{
return (uint8_t)(content[0])
}
@@ -206,7 +206,7 @@ uint16_t icc_uint8(const char* restrict content)
* @param width The number of bytes with which the value is encoded
* @return The value, decoded
*/
-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;
@@ -220,7 +220,7 @@ double icc_double(const char* restrict content, size_t width)
}
-int parse_icc(const char* restrict content, size_t n, libcoopgamma_ramps_t* ramps, signed* depth)
+static int parse_icc(const char* restrict content, size_t n, libcoopgamma_ramps_t* ramps, signed* depth)
{
uint32_t i_tag, n_tags;
size_t i, ptr = 0, xptr;