diff options
author | Herb Lewis <herb@samba.org> | 2001-10-23 19:10:30 +0000 |
---|---|---|
committer | Herb Lewis <herb@samba.org> | 2001-10-23 19:10:30 +0000 |
commit | 51cb4411df61d1caec9d84809b1a53a6a632f808 (patch) | |
tree | f8237ff2777de98ece8e53ad102082bbe48c5abf /source/intl | |
parent | 1b3123df48ca586b3d9c86a152354690836f6beb (diff) | |
download | samba-51cb4411df61d1caec9d84809b1a53a6a632f808.tar.gz samba-51cb4411df61d1caec9d84809b1a53a6a632f808.tar.xz samba-51cb4411df61d1caec9d84809b1a53a6a632f808.zip |
get rid of compiler warnings (casts and delete unused variables)
Diffstat (limited to 'source/intl')
-rw-r--r-- | source/intl/lang_tdb.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source/intl/lang_tdb.c b/source/intl/lang_tdb.c index 38bdcdd132c..36f8020bbe1 100644 --- a/source/intl/lang_tdb.c +++ b/source/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); |