From e7e35d227fabf7f1b3628e65ffd6fc039de21062 Mon Sep 17 00:00:00 2001 From: Howard Chu Date: Mon, 22 Mar 2004 21:19:30 +0000 Subject: [PATCH] Import ITS#3004 fix from HEAD --- servers/slapd/back-bdb/idl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/servers/slapd/back-bdb/idl.c b/servers/slapd/back-bdb/idl.c index 5d7f321857..335552d03b 100644 --- a/servers/slapd/back-bdb/idl.c +++ b/servers/slapd/back-bdb/idl.c @@ -50,7 +50,7 @@ bdb_idl_entry_cmp( const void *v_idl1, const void *v_idl2 ) const bdb_idl_cache_entry_t *idl1 = v_idl1, *idl2 = v_idl2; int rc; - if ((rc = idl1->db - idl2->db )) return rc; + if ((rc = SLAP_PTRCMP( idl1->db, idl2->db ))) return rc; if ((rc = idl1->kstr.bv_len - idl2->kstr.bv_len )) return rc; return ( memcmp ( idl1->kstr.bv_val, idl2->kstr.bv_val , idl1->kstr.bv_len ) ); } -- 2.39.5