Fix a pointer to int conversion warning: cast the int instead.
authorMichael Adam <obnox@samba.org>
Fri, 15 Feb 2008 12:14:20 +0000 (13:14 +0100)
committerMichael Adam <obnox@samba.org>
Fri, 15 Feb 2008 12:14:20 +0000 (13:14 +0100)
Michael

source/torture/smbiconv.c

index 6e609aa851d0a0d954690ff10dbef7defb4a10ea..72fbdc470fe9172640d4ecf0e0fdcca1eda1829f 100644 (file)
@@ -214,7 +214,7 @@ int main(int argc, char *argv[])
        }
 
        cd = smb_iconv_open(to, from);
-       if((int)cd == -1) {
+       if (cd == (smb_iconv_t)-1) {
                DEBUG(0,("unable to find from or to encoding, exiting...\n"));
                return 1;
        }