3 * Copyright 1998-2000 The OpenLDAP Foundation, All Rights Reserved.
4 * COPYING RESTRICTIONS APPLY, see COPYRIGHT file
7 * Copyright (c) 1990 Regents of the University of Michigan.
17 #include <ac/stdlib.h>
19 #include <ac/socket.h>
20 #include <ac/string.h>
26 ldap_delete_result_entry( LDAPMessage **list, LDAPMessage *e )
28 LDAPMessage *tmp, *prev = NULL;
30 assert( list != NULL );
33 for ( tmp = *list; tmp != NULL && tmp != e; tmp = tmp->lm_chain )
40 *list = tmp->lm_chain;
42 prev->lm_chain = tmp->lm_chain;
49 ldap_add_result_entry( LDAPMessage **list, LDAPMessage *e )
51 assert( list != NULL );