/* The low-level interface we use. */
-#ifndef HAVE_LIBIDN
-
-int mutt_idna_to_local (const char *in, char **out, int flags __attribute__ ((unused)))
-{
- *out = m_strdup(in);
- return 1;
-}
-
-int mutt_local_to_idna (const char *in, char **out)
-{
- *out = m_strdup(in);
- return 0;
-}
-
-#else
-
-int mutt_idna_to_local (const char *in, char **out, int flags)
+static int mutt_idna_to_local (const char *in, char **out, int flags)
{
+#ifdef HAVE_LIBIDN
*out = NULL;
if (!option (OPTUSEIDN))
notrans:
p_delete(out);
+#endif
*out = m_strdup(in);
return 1;
}
-int mutt_local_to_idna (const char *in, char **out)
+static int mutt_local_to_idna (const char *in, char **out)
{
+#ifdef HAVE_LIBIDN
int rv = 0;
char *tmp = m_strdup(in);
*out = m_strdup(in);
}
return rv;
-}
-
+#else
+ *out = m_strdup(in);
+ return 0;
#endif
-
+}
/* higher level functions */