diff options
author | Johannes Löthberg <johannes@kyriasis.com> | 2014-11-11 17:32:39 +0100 |
---|---|---|
committer | Johannes Löthberg <johannes@kyriasis.com> | 2014-11-11 17:32:39 +0100 |
commit | 5ff20a451cb038ab9bda6cb9aae869d1dfc41c80 (patch) | |
tree | 9af8b510654a3ccc6579a00409035ae077c45af1 /src | |
parent | 7052961718cf3a672974fcd5514021a086ba8a42 (diff) | |
download | yawa-5ff20a451cb038ab9bda6cb9aae869d1dfc41c80.tar.xz |
use `const char *` in parse_<type>
Diffstat (limited to 'src')
-rw-r--r-- | src/utils.c | 6 | ||||
-rw-r--r-- | src/utils.h | 6 |
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); |