diff options
author | Alan Coopersmith <alan.coopersmith@oracle.com> | 2013-08-10 21:46:37 -0700 |
---|---|---|
committer | Ulrich Sibiller <uli42@gmx.de> | 2016-10-19 21:40:28 +0200 |
commit | d2671c285e1923acae674ef9390a3f8bf23c11b3 (patch) | |
tree | 1298ec41d4720210b88550bae0eabf78a5b42c23 /nx-X11/lib/X11/XlcPubI.h | |
parent | 22377a799a141ba6b1e43b83de4a506b36a842a4 (diff) | |
download | nx-libs-d2671c285e1923acae674ef9390a3f8bf23c11b3.tar.gz nx-libs-d2671c285e1923acae674ef9390a3f8bf23c11b3.tar.bz2 nx-libs-d2671c285e1923acae674ef9390a3f8bf23c11b3.zip |
Constify lc_name argument to _XlcLocaleDirName() & _XlcLocaleLibDirName()
Makes code considerably less crufty and clears gcc warnings:
XlcDL.c: In function '_XlcDynamicLoad':
XlcDL.c:384:44: warning: cast discards '__attribute__((const))' qualifier
from pointer target type [-Wcast-qual]
XlcDL.c:386:51: warning: cast discards '__attribute__((const))' qualifier
from pointer target type [-Wcast-qual]
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
Backported-to-NX-by: Ulrich Sibiller <uli42@gmx.de>
Diffstat (limited to 'nx-X11/lib/X11/XlcPubI.h')
-rw-r--r-- | nx-X11/lib/X11/XlcPubI.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/nx-X11/lib/X11/XlcPubI.h b/nx-X11/lib/X11/XlcPubI.h index f41e3442a..44d0d086c 100644 --- a/nx-X11/lib/X11/XlcPubI.h +++ b/nx-X11/lib/X11/XlcPubI.h @@ -207,13 +207,13 @@ extern int _XlcResolveI18NPath( extern char *_XlcLocaleLibDirName( char* /* dir_name */, size_t, /* dir_len */ - char* /* lc_name */ + const char* /* lc_name */ ); extern char *_XlcLocaleDirName( char* /* dir_name */, size_t, /* dir_len */ - char* /* lc_name */ + const char* /* lc_name */ ); extern XPointer _XlcCreateLocaleDataBase( |