svn commit: samba r11879 - in branches/SAMBA_4_0/source/wrepl_server: .

metze at samba.org metze at samba.org
Wed Nov 23 12:19:38 GMT 2005


Author: metze
Date: 2005-11-23 12:19:38 +0000 (Wed, 23 Nov 2005)
New Revision: 11879

WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=11879

Log:
some fixes for the new ldb api

metze
Modified:
   branches/SAMBA_4_0/source/wrepl_server/wrepl_in_call.c


Changeset:
Modified: branches/SAMBA_4_0/source/wrepl_server/wrepl_in_call.c
===================================================================
--- branches/SAMBA_4_0/source/wrepl_server/wrepl_in_call.c	2005-11-23 11:37:54 UTC (rev 11878)
+++ branches/SAMBA_4_0/source/wrepl_server/wrepl_in_call.c	2005-11-23 12:19:38 UTC (rev 11879)
@@ -264,13 +264,13 @@
 	}
 
 	/* sort the names before we send them */
-	qsort(names, ret, sizeof(struct wrepl_wins_name), (comparison_fn_t)wreplsrv_in_sort_wins_name);
+	qsort(names, res->count, sizeof(struct wrepl_wins_name), (comparison_fn_t)wreplsrv_in_sort_wins_name);
 
 	DEBUG(2,("WINSREPL:reply [%u] records owner[%s] min[%llu] max[%llu] to partner[%s]\n",
-		ret, owner_in->address, owner_in->min_version, owner_in->max_version,
+		res->count, owner_in->address, owner_in->min_version, owner_in->max_version,
 		call->wreplconn->partner->address));
 
-	reply_out->num_names	= ret;
+	reply_out->num_names	= res->count;
 	reply_out->names	= names;
 
 	return NT_STATUS_OK;



More information about the samba-cvs mailing list