]> andersk Git - openssh.git/commitdiff
- Cleanup of bsd-base64 headers, bugfix definitions of __b64_*. Reported
authordamien <damien>
Tue, 9 May 2000 05:28:41 +0000 (05:28 +0000)
committerdamien <damien>
Tue, 9 May 2000 05:28:41 +0000 (05:28 +0000)
   by Andre Lucas <andre.lucas@dial.pipex.com>

bsd-base64.c
bsd-base64.h
uuencode.c

index 57a957364b46c1c33a7a111c89af29f5ebc11339..8cbf8eeef0f1fe2c0a7740e7abb4c2322f502abb 100644 (file)
@@ -44,7 +44,7 @@
 
 #include "config.h"
 
-#ifndef HAVE_B64_NTOP
+#if !defined(HAVE_B64_NTOP) && !defined(HAVE___B64_NTOP)
 
 #include <sys/types.h>
 #include <sys/param.h>
 #include <arpa/inet.h>
 
 #include <ctype.h>
-#include <resolv.h>
 #include <stdio.h>
 
 #include <stdlib.h>
 #include <string.h>
 
+#include "bsd-base64.h"
+
 #define Assert(Cond) if (!(Cond)) abort()
 
 static const char Base64[] =
@@ -312,4 +313,4 @@ b64_pton(char const *src, u_char *target, size_t targsize)
        return (tarindex);
 }
 
-#endif /* HAVE_B64_NTOP */
+#endif /* !defined(HAVE_B64_NTOP) && !defined(HAVE___B64_NTOP) */
index c5dace7cb8a3d9368bf2c1a35c1700e023e0b772..c1d69dd6c5036c69395ace8c915de7c152b6bf1e 100644 (file)
@@ -4,16 +4,13 @@
 #include "config.h"
 
 #ifndef HAVE___B64_NTOP
-# ifdef HAVE_B64_NTOP
-#  define __b64_ntop b64_ntop
-#  define __b64_pton b64_pton
-# else /* !HAVE_B64_NTOP */
-
+# ifndef HAVE_B64_NTOP
 int b64_ntop(u_char const *src, size_t srclength, char *target, 
     size_t targsize);
 int b64_pton(char const *src, u_char *target, size_t targsize);
-
-# endif /* HAVE_B64_NTOP */
+# endif /* !HAVE_B64_NTOP */
+# define __b64_ntop b64_ntop
+# define __b64_pton b64_pton
 #endif /* HAVE___B64_NTOP */
 
 #endif /* _BSD_BINRESVPORT_H */
index fc84d5a5830b591b5ea192542eb341fedfe1eb00..2540d7564646aebb0543962f613ba3d20a232964 100644 (file)
@@ -4,8 +4,6 @@
 #include "includes.h"
 #include "xmalloc.h"
 
-#include <resolv.h>
-
 int
 uuencode(unsigned char *src, unsigned int srclength,
     char *target, size_t targsize)
This page took 0.052712 seconds and 5 git commands to generate.