aboutsummaryrefslogtreecommitdiff
path: root/libX11/src/xlibi18n/lcPublic.c
diff options
context:
space:
mode:
Diffstat (limited to 'libX11/src/xlibi18n/lcPublic.c')
-rw-r--r--libX11/src/xlibi18n/lcPublic.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/libX11/src/xlibi18n/lcPublic.c b/libX11/src/xlibi18n/lcPublic.c
index 12a344272..46c652e2b 100644
--- a/libX11/src/xlibi18n/lcPublic.c
+++ b/libX11/src/xlibi18n/lcPublic.c
@@ -89,7 +89,7 @@ create(
if (lcd->core == NULL)
goto err;
- new = (XLCdPublicMethods) Xmalloc(sizeof(XLCdPublicMethodsRec));
+ new = Xmalloc(sizeof(XLCdPublicMethodsRec));
if (new == NULL)
goto err;
memcpy(new,methods,sizeof(XLCdPublicMethodsRec));
@@ -107,7 +107,8 @@ load_public(
XLCd lcd)
{
XLCdPublicPart *pub = XLC_PUBLIC_PART(lcd);
- char **values, *str;
+ char **values;
+ const char *str;
int num;
if(_XlcCreateLocaleDataBase(lcd) == NULL)