From 5ff20a451cb038ab9bda6cb9aae869d1dfc41c80 Mon Sep 17 00:00:00 2001 From: Johannes Löthberg Date: Tue, 11 Nov 2014 17:32:39 +0100 Subject: use `const char *` in parse_ --- src/utils.c | 6 +++--- src/utils.h | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) (limited to 'src') 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); -- cgit v1.2.3-70-g09d2