Make the buffers const char *

Addresses a warning, but also seems more correct.

Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
Dirk Hohndel 2014-10-26 20:37:12 -07:00
parent 8fcc074b49
commit 71826cf776

View file

@ -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;