]> git.sur5r.net Git - openldap/commitdiff
Wasn't merged. Just use autoconf version.
authorKurt Zeilenga <kurt@openldap.org>
Sun, 25 Oct 1998 01:57:30 +0000 (01:57 +0000)
committerKurt Zeilenga <kurt@openldap.org>
Sun, 25 Oct 1998 01:57:30 +0000 (01:57 +0000)
libraries/libldap/url.c

index b1b60608b883188d90453a47054ac5a5a6631034..83ccbdc5460bf73e198985d0265b17dabb91816b 100644 (file)
  *  We also tolerate URLs that look like: <ldapurl> and <URL:ldapurl>
  */
 
+#include "portable.h"
+
 #ifndef lint 
 static char copyright[] = "@(#) Copyright (c) 1996 Regents of the University of Michigan.\nAll rights reserved.\n";
 #endif
 
 #include <stdio.h>
-#include <string.h>
-#include <ctype.h>
 #include <stdlib.h>
 
-#ifdef MACOS
-#include "macos.h"
-#endif /* MACOS */
-
-#if defined( DOS ) || defined( _WIN32 )
-#include <malloc.h>
-#include "msdos.h"
-#endif /* DOS || _WIN32 */
-
-#if !defined(MACOS) && !defined(DOS) && !defined( _WIN32 )
-#include <sys/time.h>
-#include <sys/types.h>
-#include <sys/socket.h>
-#endif /* !MACOS && !DOS && !_WIN32 */
+#include <ac/ctype.h>
+#include <ac/socket.h>
+#include <ac/string.h>
+#include <ac/time.h>
 
 #include "lber.h"
 #include "ldap.h"
 #include "ldap-int.h"
 
 
-#ifdef NEEDPROTOS
-static int skip_url_prefix( char **urlp, int *enclosedp );
-static void hex_unescape( char *s );
-static int unhex( char c );
-#else /* NEEDPROTOS */
-static int skip_url_prefix();
-static void hex_unescape();
-static int unhex();
-#endif /* NEEDPROTOS */
+static int skip_url_prefix LDAP_P(( char **urlp, int *enclosedp ));
+static void hex_unescape LDAP_P(( char *s ));
+static int unhex LDAP_P(( char c ));
 
 
 int