about summary refs log tree commit diff
path: root/locale
diff options
context:
space:
mode:
Diffstat (limited to 'locale')
-rw-r--r--locale/programs/linereader.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/locale/programs/linereader.c b/locale/programs/linereader.c
index 68508dff0c..14496c00af 100644
--- a/locale/programs/linereader.c
+++ b/locale/programs/linereader.c
@@ -80,7 +80,7 @@ lr_open (const char *fname, kw_hash_fct_t hf)
     {
       int save = errno;
       fclose (result->fp);
-      free (result->fname);
+      free ((char *) result->fname);
       free (result);
       errno = save;
       return NULL;
@@ -108,7 +108,7 @@ void
 lr_close (struct linereader *lr)
 {
   fclose (lr->fp);
-  free (lr->fname);
+  free ((char *) lr->fname);
   free (lr->buf);
   free (lr);
 }