svn commit: samba r14960 - in branches/SAMBA_4_0/source/ntvfs/common: .

tridge at samba.org tridge at samba.org
Fri Apr 7 11:44:55 GMT 2006


Author: tridge
Date: 2006-04-07 11:44:55 +0000 (Fri, 07 Apr 2006)
New Revision: 14960

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

Log:

don't declare variables mid-function

Modified:
   branches/SAMBA_4_0/source/ntvfs/common/notify.c


Changeset:
Modified: branches/SAMBA_4_0/source/ntvfs/common/notify.c
===================================================================
--- branches/SAMBA_4_0/source/ntvfs/common/notify.c	2006-04-07 11:25:21 UTC (rev 14959)
+++ branches/SAMBA_4_0/source/ntvfs/common/notify.c	2006-04-07 11:44:55 UTC (rev 14960)
@@ -609,9 +609,10 @@
 
 		while (min_i < max_i) {
 			struct notify_entry *e;
+			int cmp;
 			i = (min_i+max_i)/2;
 			e = &d->entries[i];
-			int cmp = strncmp(path, e->path, p_len);
+			cmp = strncmp(path, e->path, p_len);
 			if (cmp == 0) {
 				if (p_len == e->path_len) {
 					max_i = i;



More information about the samba-cvs mailing list