summaryrefslogtreecommitdiff
path: root/source4/lib/replace/strptime.c
diff options
context:
space:
mode:
Diffstat (limited to 'source4/lib/replace/strptime.c')
-rw-r--r--source4/lib/replace/strptime.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source4/lib/replace/strptime.c b/source4/lib/replace/strptime.c
index 8fb919472e..d415b7826e 100644
--- a/source4/lib/replace/strptime.c
+++ b/source4/lib/replace/strptime.c
@@ -974,7 +974,7 @@ strptime_internal (rp, fmt, tm, decided, era_cnt)
if (want_xday && !have_yday)
day_of_the_year (tm);
- return (char *) rp;
+ return discard_const_p(char, rp);
}