From 796d7b5077684dbd16d00a903073029b10ebdeaf Mon Sep 17 00:00:00 2001 From: Akira Kakuto Date: Fri, 1 Jul 2016 08:19:10 +0000 Subject: kpathsea: Avoid compiler warnings git-svn-id: svn://tug.org/texlive/trunk@41586 c570f23f-e606-0410-a88d-b1316a301751 --- Build/source/texk/kpathsea/ChangeLog | 4 ++++ Build/source/texk/kpathsea/knj.c | 4 ++-- Build/source/texk/kpathsea/knj.h | 4 ++-- 3 files changed, 8 insertions(+), 4 deletions(-) (limited to 'Build/source/texk/kpathsea') diff --git a/Build/source/texk/kpathsea/ChangeLog b/Build/source/texk/kpathsea/ChangeLog index 199b86a6033..235a947f2e9 100644 --- a/Build/source/texk/kpathsea/ChangeLog +++ b/Build/source/texk/kpathsea/ChangeLog @@ -1,3 +1,7 @@ +2016-07-01 Akira Kakuto + + * knj.c, knj.h: Avoid compiler warnings. + 2016-06-30 Karl Berry * version.ac (kpse_version): 6.2.2 => 6.2.3dev. diff --git a/Build/source/texk/kpathsea/knj.c b/Build/source/texk/kpathsea/knj.c index b5658f76671..09d718ce8e2 100644 --- a/Build/source/texk/kpathsea/knj.c +++ b/Build/source/texk/kpathsea/knj.c @@ -517,7 +517,7 @@ kpathsea_win32_putc(kpathsea kpse, int c, FILE *fp) } int -kpathsea_IS_KANJI(kpathsea kpse, char *p) +kpathsea_IS_KANJI(kpathsea kpse, const char *p) { int ret; @@ -625,7 +625,7 @@ win32_putc(int c, FILE *fp) } int -IS_KANJI(char *p) +IS_KANJI(const char *p) { return kpathsea_IS_KANJI(kpse_def, p); } diff --git a/Build/source/texk/kpathsea/knj.h b/Build/source/texk/kpathsea/knj.h index 008678c0b92..5387533de1a 100644 --- a/Build/source/texk/kpathsea/knj.h +++ b/Build/source/texk/kpathsea/knj.h @@ -39,7 +39,7 @@ extern KPSEDLL int kpathsea_win32_fputs(kpathsea kpse, const char *str, FILE *fp extern KPSEDLL int kpathsea_win32_puts(kpathsea kpse, const char *str); extern KPSEDLL int kpathsea_win32_vfprintf(kpathsea kpse, FILE *fp, const char *format, va_list argp); extern KPSEDLL int kpathsea_win32_putc(kpathsea kpse, int c, FILE *fp); -extern KPSEDLL int kpathsea_IS_KANJI(kpathsea kpse, char *p); +extern KPSEDLL int kpathsea_IS_KANJI(kpathsea kpse, const char *p); extern KPSEDLL char *kpathsea_get_fsyscp_from_wstring(kpathsea kpse, const wchar_t *w,char *mb); extern KPSEDLL wchar_t *kpathsea_get_wstring_from_fsyscp(kpathsea kpse, const char *mb,wchar_t *w); @@ -61,7 +61,7 @@ extern KPSEDLL int win32_fputs(const char *str, FILE *fp); extern KPSEDLL int win32_puts(const char *str); extern KPSEDLL int win32_vfprintf(FILE *fp, const char *format, va_list argp); extern KPSEDLL int win32_putc(int c, FILE *fp); -extern KPSEDLL int IS_KANJI(char *p); +extern KPSEDLL int IS_KANJI(const char *p); extern KPSEDLL char *get_fsyscp_from_wstring(const wchar_t *w,char *mb); extern KPSEDLL wchar_t *get_wstring_from_fsyscp(const char *mb,wchar_t *w); #endif -- cgit v1.2.3