dhtlog updates
[oweals/gnunet.git] / src / util / strings.c
index 6a7b9150be8415f82f22a1c90ff1358629822a3f..1f7f45d5192504cb27e3b0812d9d3d78da24673a 100644 (file)
@@ -26,7 +26,7 @@
  */
 
 #include "platform.h"
-#if HAVE_ICONV_H
+#if HAVE_ICONV
 #include <iconv.h>
 #endif
 #include "gnunet_common.h"
@@ -204,7 +204,7 @@ GNUNET_STRINGS_to_utf8 (const char *input, size_t len, const char *charset)
 #else
              (char **) &input,
 #endif
-             &len, &itmp, &finSize) == (size_t) - 1)
+             &len, &itmp, &finSize) == SIZE_MAX)
     {
       GNUNET_log_strerror (GNUNET_ERROR_TYPE_WARNING, "iconv");
       iconv_close (cd);