[evince] [PATCH 1/2] mdvi-lib: Fix two compilation warnings



They are:
  - incorrect function prototype, and
  - const char accessed through a char pointer.
---
 backend/dvi/mdvi-lib/fontmap.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/backend/dvi/mdvi-lib/fontmap.c b/backend/dvi/mdvi-lib/fontmap.c
index 4d7cb576..89da4663 100644
--- a/backend/dvi/mdvi-lib/fontmap.c
+++ b/backend/dvi/mdvi-lib/fontmap.c
@@ -645,7 +645,7 @@ void        mdvi_install_fontmap(DviFontMapEnt *head)
        }
 }
 
-static void init_static_encoding()
+static void init_static_encoding(void)
 {
        DviEncoding     *encoding;
        int     i;
@@ -706,7 +706,7 @@ static int  mdvi_init_fontmaps(void)
        FILE    *in;
        Dstring input;
        int     count = 0;
-       char    *config;
+       const char      *config;
 
        if(fontmaps_loaded)
                return 0;
-- 
2.13.1





[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]