Skip to content

Commit

Permalink
hygiene, satisfy gcc's idea of constant string arrays, addresses issu…
Browse files Browse the repository at this point in the history
…e 143
  • Loading branch information
hroptatyr committed Jan 24, 2024
1 parent 07c147d commit 51ac0e0
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/strptime.c
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ const char *prog = "strptime";


static int
pars_line(struct tm *tm, const char *const *fmt, size_t nfmt, const char *line)
pars_line(struct tm *tm, char *const *fmt, size_t nfmt, const char *line)
{
for (size_t i = 0; i < nfmt; i++) {
if (fmt[i] && strptime(line, fmt[i], tm) != NULL) {
Expand All @@ -75,7 +75,7 @@ prnt_line(const char *ofmt, struct tm *tm)

static int
proc_line(
const char *ln, const char *const *fmt, size_t nfmt,
const char *ln, char *const *fmt, size_t nfmt,
const char *ofmt,
int quietp)
{
Expand All @@ -94,7 +94,7 @@ proc_line(
}

static int
proc_lines(const char *const *fmt, size_t nfmt, const char *ofmt, int quietp)
proc_lines(char *const *fmt, size_t nfmt, const char *ofmt, int quietp)
{
size_t lno = 0;
int rc = 0;
Expand Down

0 comments on commit 51ac0e0

Please sign in to comment.