From e88a6bd4d8117408dd0b15925cc71e1966894068 Mon Sep 17 00:00:00 2001 From: Sergei Trofimovich Date: Sun, 19 Apr 2009 22:11:49 +0300 Subject: [PATCH] vfs/vfs.c: build fix: iconv_t(-1) -> INVALID_CONV Signed-off-by: Sergei Trofimovich --- vfs/vfs.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/vfs/vfs.c b/vfs/vfs.c index f16339f11..85fde7c0b 100644 --- a/vfs/vfs.c +++ b/vfs/vfs.c @@ -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);