]> git.sur5r.net Git - openldap/blobdiff - libraries/libldap/modify.c
Move LDAPServer, LDAPConn, LDAPRequest, and LDAPCache
[openldap] / libraries / libldap / modify.c
index 316dde787f7af9c61d80837fb169c542788ada09..450d7e923c2c486b500561faafe3392410b4106f 100644 (file)
@@ -5,24 +5,18 @@
  *  modify.c
  */
 
+#include "portable.h"
+
 #ifndef lint 
 static char copyright[] = "@(#) Copyright (c) 1990 Regents of the University of Michigan.\nAll rights reserved.\n";
 #endif
 
 #include <stdio.h>
-#include <string.h>
-
-#ifdef MACOS
-#include "macos.h"
-#endif /* MACOS */
 
-#if !defined( MACOS ) && !defined( DOS )
-#include <sys/types.h>
-#include <sys/socket.h>
-#endif
+#include <ac/socket.h>
+#include <ac/string.h>
+#include <ac/time.h>
 
-#include "lber.h"
-#include "ldap.h"
 #include "ldap-int.h"
 
 /*
@@ -69,7 +63,7 @@ ldap_modify( LDAP *ld, char *dn, LDAPMod **mods )
        Debug( LDAP_DEBUG_TRACE, "ldap_modify\n", 0, 0, 0 );
 
        /* create a message to send */
-       if ( (ber = alloc_ber_with_options( ld )) == NULLBER ) {
+       if ( (ber = ldap_alloc_ber_with_options( ld )) == NULLBER ) {
                return( -1 );
        }
 
@@ -105,7 +99,7 @@ ldap_modify( LDAP *ld, char *dn, LDAPMod **mods )
        }
 
        /* send the message */
-       return( send_initial_request( ld, LDAP_REQ_MODIFY, dn, ber ));
+       return( ldap_send_initial_request( ld, LDAP_REQ_MODIFY, dn, ber ));
 }
 
 int