From 71826cf776570433bb28616f32ed407aee4a2ec1 Mon Sep 17 00:00:00 2001 From: Dirk Hohndel Date: Sun, 26 Oct 2014 20:37:12 -0700 Subject: [PATCH] Make the buffers const char * Addresses a warning, but also seems more correct. Signed-off-by: Dirk Hohndel --- parse-xml.c | 4 ++-- 1 file 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;