aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJohannes Löthberg <johannes@kyriasis.com>2014-11-11 17:32:39 +0100
committerJohannes Löthberg <johannes@kyriasis.com>2014-11-11 17:32:39 +0100
commit5ff20a451cb038ab9bda6cb9aae869d1dfc41c80 (patch)
tree9af8b510654a3ccc6579a00409035ae077c45af1
parent7052961718cf3a672974fcd5514021a086ba8a42 (diff)
downloadyawa-5ff20a451cb038ab9bda6cb9aae869d1dfc41c80.tar.xz
use `const char *` in parse_<type>
-rw-r--r--src/utils.c6
-rw-r--r--src/utils.h6
2 files changed, 6 insertions, 6 deletions
diff --git a/src/utils.c b/src/utils.c
index 8247a2d..5bfbf5a 100644
--- a/src/utils.c
+++ b/src/utils.c
@@ -10,7 +10,7 @@
#include "utils.h"
signed
-parse_int(char *string, char *arg)
+parse_int(char *string, const char *arg)
{
errno = 0;
char *endptr;
@@ -32,7 +32,7 @@ parse_int(char *string, char *arg)
}
unsigned
-parse_uint(char *string, char *arg)
+parse_uint(char *string, const char *arg)
{
errno = 0;
char *endptr;
@@ -54,7 +54,7 @@ parse_uint(char *string, char *arg)
}
double
-parse_double(char *string, char *arg)
+parse_double(char *string, const char *arg)
{
errno = 0;
char *endptr;
diff --git a/src/utils.h b/src/utils.h
index 86d77ea..eb0fb40 100644
--- a/src/utils.h
+++ b/src/utils.h
@@ -5,13 +5,13 @@
/// Prototypes
signed
-parse_int(char *string, char *arg);
+parse_int(char *string, const char *arg);
unsigned
-parse_uint(char *string, char *arg);
+parse_uint(char *string, const char *arg);
double
-parse_double(char *string, char *arg);
+parse_double(char *string, const char *arg);
bool
parse_color(char *hex, Color *color, signed alpha);