vfs/vfs.c: build fix: iconv_t(-1) -> INVALID_CONV

Signed-off-by: Sergei Trofimovich <slyfox@inbox.ru>
This commit is contained in:
Sergei Trofimovich 2009-04-19 22:11:49 +03:00
parent 6a638f25b3
commit e88a6bd4d8

View File

@ -426,7 +426,7 @@ _vfs_translate_path (const char *path, int size,
switch (vfs_supported_enconding (encoding)) {
case 1:
coder = str_crt_conv_to (encoding);
if (coder != (iconv_t) (-1)) {
if (coder != INVALID_CONV) {
if (slash != NULL) {
state = str_vfs_convert_to (coder, slash,
path + size - slash, buffer);
@ -719,7 +719,7 @@ mc_opendir (const char *dirname)
g_free (canon);
dirinfo->converter = (encoding != NULL) ? str_crt_conv_from (encoding) :
str_cnv_from_term;
if (dirinfo->converter == (iconv_t) (-1)) dirinfo->converter =str_cnv_from_term;
if (dirinfo->converter == INVALID_CONV) dirinfo->converter =str_cnv_from_term;
handle = vfs_new_handle (vfs, dirinfo);