]> git.sur5r.net Git - openldap/commitdiff
unifdef -DLDAP_CONTROL_PAGEDRESULTS (as it is always defined)
authorKurt Zeilenga <kurt@openldap.org>
Mon, 8 Dec 2003 18:16:07 +0000 (18:16 +0000)
committerKurt Zeilenga <kurt@openldap.org>
Mon, 8 Dec 2003 18:16:07 +0000 (18:16 +0000)
servers/slapd/back-bdb/init.c
servers/slapd/back-bdb/search.c
servers/slapd/connection.c
servers/slapd/controls.c
servers/slapd/slap.h

index 7d225dab6adbec9f72c8a0b26f76f2219ecd8797..978fd5f0c4612c22a4d00822cef489e1494f128a 100644 (file)
@@ -590,9 +590,7 @@ bdb_initialize(
                LDAP_CONTROL_ASSERT,
                LDAP_CONTROL_MANAGEDSAIT,
                LDAP_CONTROL_NOOP,
-#ifdef LDAP_CONTROL_PAGEDRESULTS
                LDAP_CONTROL_PAGEDRESULTS,
-#endif
 #ifdef LDAP_CONTROL_SUBENTRIES
                LDAP_CONTROL_SUBENTRIES,
 #endif
index 701b04918dfc0caaf4ebf29840b4691b77dff474..c0f9d4ac42854fb747a45c849a097a0931b00954 100644 (file)
@@ -812,7 +812,6 @@ dn2entry_retry:
                tentries = BDB_IDL_N(candidates);
        }
 
-#ifdef LDAP_CONTROL_PAGEDRESULTS
        if ( get_pagedresults(sop) ) {
                if ( sop->o_pagedresults_state.ps_cookie == 0 ) {
                        id = 0;
@@ -844,7 +843,6 @@ dn2entry_retry:
                }
                goto loop_begin;
        }
-#endif
 
        if ( (sop->o_sync_mode & SLAP_SYNC_REFRESH) || IS_PSEARCH )
        {
@@ -1184,7 +1182,6 @@ id2entry_retry:
                                goto done;
                        }
 
-#ifdef LDAP_CONTROL_PAGEDRESULTS
                        if ( get_pagedresults(sop) ) {
                                if ( rs->sr_nentries >= sop->o_pagedresults_size ) {
                                        send_pagerequest_response( sop, rs,
@@ -1193,7 +1190,6 @@ id2entry_retry:
                                }
                                lastid = id;
                        }
-#endif
 
                        if (e) {
                                /* safe default */
@@ -1737,7 +1733,6 @@ static int search_candidates(
        return rc;
 }
 
-#ifdef LDAP_CONTROL_PAGEDRESULTS
 static void
 send_pagerequest_response( 
        Operation       *op,
@@ -1792,4 +1787,3 @@ send_pagerequest_response(
 done:
        (void) ber_free_buf( ber );
 }                      
-#endif
index 9ee80e6d86c2a8183239daa30e690ebd3600ac56..b0f1c8f3d0042366be59ca06eb5d847db4faf377 100644 (file)
@@ -1567,10 +1567,7 @@ connection_input(
        op->o_preread_attrs = NULL;
        op->o_postread_attrs = NULL;
        op->o_vrFilter = NULL;
-
-#ifdef LDAP_CONTROL_PAGEDRESULTS
        op->o_pagedresults_state = conn->c_pagedresults_state;
-#endif
 
        op->o_res_ber = NULL;
 
index c5aca28721cfa925f4e76cdbbc3d7777dd14c86d..8177fa38ea46e1715c1c855769c43a1c71f3589b 100644 (file)
@@ -89,11 +89,9 @@ static struct slap_control control_defs[] = {
        { LDAP_CONTROL_VALUESRETURNFILTER,
                SLAP_CTRL_SEARCH, NULL,
                parseValuesReturnFilter, LDAP_SLIST_ENTRY_INITIALIZER(next) },
-#ifdef LDAP_CONTROL_PAGEDRESULTS
        { LDAP_CONTROL_PAGEDRESULTS,
                SLAP_CTRL_SEARCH, NULL,
                parsePagedResults, LDAP_SLIST_ENTRY_INITIALIZER(next) },
-#endif
 #ifdef LDAP_CONTROL_X_DOMAIN_SCOPE
        { LDAP_CONTROL_X_DOMAIN_SCOPE,
                SLAP_CTRL_FRONTEND|SLAP_CTRL_SEARCH, NULL,
@@ -819,7 +817,6 @@ static int parseNoOp (
        return LDAP_SUCCESS;
 }
 
-#ifdef LDAP_CONTROL_PAGEDRESULTS
 static int parsePagedResults (
        Operation *op,
        SlapReply *rs,
@@ -900,7 +897,6 @@ static int parsePagedResults (
 
        return LDAP_SUCCESS;
 }
-#endif
 
 static int parseAssert (
        Operation *op,
index 40e87db90562b64b7969d9a15bb93496fd8f4a72..d67b3ee8d2149043bd39f97b2504efeb683eb32f 100644 (file)
@@ -2009,14 +2009,10 @@ typedef struct slap_op {
        AttributeName *o_preread_attrs;
        AttributeName *o_postread_attrs;
 
-#ifdef LDAP_CONTROL_PAGEDRESULTS
        char o_pagedresults;
 #define get_pagedresults(op)                   ((int)(op)->o_pagedresults)
        ber_int_t o_pagedresults_size;
        PagedResultsState o_pagedresults_state;
-#else
-#define get_pagedresults(op)                   (0)
-#endif
 
        char o_sync;
        char o_sync_mode;