diff options
author | Damien Miller <djm@mindrot.org> | 2000-05-09 15:28:41 +1000 |
---|---|---|
committer | Damien Miller <djm@mindrot.org> | 2000-05-09 15:28:41 +1000 |
commit | 75edac3366133f83d10ad8c560db7d28e48305f3 (patch) | |
tree | b6317fd727d1df4bc4e0a63780228ffd09fc3166 /bsd-base64.c | |
parent | 2a44f8938d5ea02aa622bc3106988db26d9d74d6 (diff) |
- Cleanup of bsd-base64 headers, bugfix definitions of __b64_*. Reported
by Andre Lucas <andre.lucas@dial.pipex.com>
Diffstat (limited to 'bsd-base64.c')
-rw-r--r-- | bsd-base64.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/bsd-base64.c b/bsd-base64.c index 57a957364..8cbf8eeef 100644 --- a/bsd-base64.c +++ b/bsd-base64.c | |||
@@ -44,7 +44,7 @@ | |||
44 | 44 | ||
45 | #include "config.h" | 45 | #include "config.h" |
46 | 46 | ||
47 | #ifndef HAVE_B64_NTOP | 47 | #if !defined(HAVE_B64_NTOP) && !defined(HAVE___B64_NTOP) |
48 | 48 | ||
49 | #include <sys/types.h> | 49 | #include <sys/types.h> |
50 | #include <sys/param.h> | 50 | #include <sys/param.h> |
@@ -53,12 +53,13 @@ | |||
53 | #include <arpa/inet.h> | 53 | #include <arpa/inet.h> |
54 | 54 | ||
55 | #include <ctype.h> | 55 | #include <ctype.h> |
56 | #include <resolv.h> | ||
57 | #include <stdio.h> | 56 | #include <stdio.h> |
58 | 57 | ||
59 | #include <stdlib.h> | 58 | #include <stdlib.h> |
60 | #include <string.h> | 59 | #include <string.h> |
61 | 60 | ||
61 | #include "bsd-base64.h" | ||
62 | |||
62 | #define Assert(Cond) if (!(Cond)) abort() | 63 | #define Assert(Cond) if (!(Cond)) abort() |
63 | 64 | ||
64 | static const char Base64[] = | 65 | static const char Base64[] = |
@@ -312,4 +313,4 @@ b64_pton(char const *src, u_char *target, size_t targsize) | |||
312 | return (tarindex); | 313 | return (tarindex); |
313 | } | 314 | } |
314 | 315 | ||
315 | #endif /* HAVE_B64_NTOP */ | 316 | #endif /* !defined(HAVE_B64_NTOP) && !defined(HAVE___B64_NTOP) */ |