浏览代码

Fixing compiler warnings

They were introduced by the commit add880accaa28de8304da1c2c2f58fe8af002ebb.
Noriko Hosoi 13 年之前
父节点
当前提交
60b2d126a4
共有 2 个文件被更改,包括 3 次插入2 次删除
  1. 2 2
      ldap/servers/slapd/pagedresults.c
  2. 1 0
      ldap/servers/slapd/proto-slap.h

+ 2 - 2
ldap/servers/slapd/pagedresults.c

@@ -267,8 +267,8 @@ pagedresults_free_one_msgid( Connection *conn, ber_int_t msgid )
     int i;
 
     LDAPDebug1Arg(LDAP_DEBUG_TRACE,
-                  "--> pagedresults_free_one: idx=%d\n", index);
-    if (conn && (index > -1)) {
+                  "--> pagedresults_free_one: msgid=%d\n", msgid);
+    if (conn && (msgid > -1)) {
         PR_Lock(conn->c_mutex);
         if (conn->c_pagedresults.prl_count <= 0) {
             LDAPDebug2Args(LDAP_DEBUG_TRACE, "pagedresults_free_one_msgid: "

+ 1 - 0
ldap/servers/slapd/proto-slap.h

@@ -1408,6 +1408,7 @@ int pagedresults_is_timedout(Connection *conn);
 int pagedresults_reset_timedout(Connection *conn);
 int pagedresults_in_use(Connection *conn);
 int pagedresults_free_one(Connection *conn, int index);
+int pagedresults_free_one_msgid( Connection *conn, ber_int_t msgid );
 int op_is_pagedresults(Operation *op);
 int pagedresults_cleanup_all(Connection *conn, int needlock);
 void op_set_pagedresults(Operation *op);