diff options
author | Dirk Hohndel <dirk@hohndel.org> | 2014-10-26 20:37:12 -0700 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2014-10-26 20:37:12 -0700 |
commit | 71826cf776570433bb28616f32ed407aee4a2ec1 (patch) | |
tree | 3c40ea7b728dd37d1a739e4f4dd453e1eb9d4a6b | |
parent | 8fcc074b493970fe45c7592d65bf216bc8bd8c42 (diff) | |
download | subsurface-71826cf776570433bb28616f32ed407aee4a2ec1.tar.gz |
Make the buffers const char *
Addresses a warning, but also seems more correct.
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
-rw-r--r-- | parse-xml.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/parse-xml.c b/parse-xml.c index 6da99b378..63ce64f86 100644 --- a/parse-xml.c +++ b/parse-xml.c @@ -137,7 +137,7 @@ static enum import_source { UDDF, } import_source; -static void divedate(char *buffer, timestamp_t *when) +static void divedate(const char *buffer, timestamp_t *when) { int d, m, y; int hh, mm, ss; @@ -163,7 +163,7 @@ static void divedate(char *buffer, timestamp_t *when) *when = utc_mktime(&cur_tm); } -static void divetime(char *buffer, timestamp_t *when) +static void divetime(const char *buffer, timestamp_t *when) { int h, m, s = 0; |