From 26c9cd62118df387d03b1f467fa6bf07cf57d7ec Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Fri, 7 Apr 2006 11:44:55 +0000 Subject: r14960: don't declare variables mid-function (This used to be commit 4537de9289ce025a240fe46a708434c195138d20) --- source4/ntvfs/common/notify.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'source4/ntvfs/common/notify.c') diff --git a/source4/ntvfs/common/notify.c b/source4/ntvfs/common/notify.c index 452b8188f0..a701880701 100644 --- a/source4/ntvfs/common/notify.c +++ b/source4/ntvfs/common/notify.c @@ -609,9 +609,10 @@ void notify_trigger(struct notify_context *notify, 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; -- cgit