[ldns-users] b64_ntop() / b64_pton() nit
Dag-Erling Smørgrav
des at des.no
Tue Apr 9 13:41:38 UTC 2013
This has no practical significance, since you will probably never come
across a system that has b64_pton() but not b64_ntop() (or the other way
around), but the conditionals in configure.ac got switched around:
Index: configure.ac
===================================================================
--- configure.ac (revision 3837)
+++ configure.ac (working copy)
@@ -637,7 +637,7 @@
extern "C" {
#endif
-#ifndef B64_PTON
+#ifndef B64_NTOP
int ldns_b64_ntop(uint8_t const *src, size_t srclength,
char *target, size_t targsize);
/**
@@ -648,8 +648,8 @@
{
return ((((srcsize + 2) / 3) * 4) + 1);
}
-#endif /* !B64_PTON */
-#ifndef B64_NTOP
+#endif /* !B64_NTOP */
+#ifndef B64_PTON
int ldns_b64_pton(char const *src, uint8_t *target, size_t targsize);
/**
* calculates the size needed to store the result of ldns_b64_pton
@@ -659,7 +659,7 @@
{
return (((((srcsize + 3) / 4) * 3)) + 1);
}
-#endif /* !B64_NTOP */
+#endif /* !B64_PTON */
#ifndef HAVE_SLEEP
/* use windows sleep, in millisecs, instead */
DES
--
Dag-Erling Smørgrav - des at des.no
More information about the ldns-users
mailing list