summaryrefslogtreecommitdiff
path: root/source3/intl
diff options
context:
space:
mode:
authorHerb Lewis <herb@samba.org>2001-10-23 19:10:30 +0000
committerHerb Lewis <herb@samba.org>2001-10-23 19:10:30 +0000
commit3ea349271355b39f7b877ce67530cc58e7db0ee8 (patch)
tree3e5c5c112cb3aa8386b3e08bbdd444953a6ebd52 /source3/intl
parent2a2cccabca40af0d713a4541b4ccba0a3d97496c (diff)
downloadsamba-3ea349271355b39f7b877ce67530cc58e7db0ee8.tar.gz
samba-3ea349271355b39f7b877ce67530cc58e7db0ee8.tar.bz2
samba-3ea349271355b39f7b877ce67530cc58e7db0ee8.zip
get rid of compiler warnings (casts and delete unused variables)
(This used to be commit 51cb4411df61d1caec9d84809b1a53a6a632f808)
Diffstat (limited to 'source3/intl')
-rw-r--r--source3/intl/lang_tdb.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source3/intl/lang_tdb.c b/source3/intl/lang_tdb.c
index 38bdcdd132..36f8020bbe 100644
--- a/source3/intl/lang_tdb.c
+++ b/source3/intl/lang_tdb.c
@@ -122,7 +122,7 @@ BOOL lang_tdb_init(const char *lang)
/* if no lang then we don't translate */
if (!lang) return True;
- asprintf(&msg_path, "%s.msg", lib_path(lang));
+ asprintf(&msg_path, "%s.msg", lib_path((char *)lang));
if (stat(msg_path, &st) != 0) {
/* the msg file isn't available */
free(msg_path);
@@ -202,7 +202,7 @@ const char *lang_msg_rotate(const char *msgid)
static pstring bufs[NUM_LANG_BUFS];
static int next;
- msgstr = lang_msg(msgid);
+ msgstr = (char *)lang_msg(msgid);
if (!msgstr) return msgid;
pstrcpy(bufs[next], msgstr);