diff options
author | Andrew Tridgell <tridge@samba.org> | 2006-04-07 11:44:55 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 14:00:46 -0500 |
commit | 26c9cd62118df387d03b1f467fa6bf07cf57d7ec (patch) | |
tree | 9da2bef232ac2bbf8eaeec9f47e9767a90435732 /source4 | |
parent | cd794e79f999b3b7b639c4fe89ea1af23ed362f6 (diff) | |
download | samba-26c9cd62118df387d03b1f467fa6bf07cf57d7ec.tar.gz samba-26c9cd62118df387d03b1f467fa6bf07cf57d7ec.tar.bz2 samba-26c9cd62118df387d03b1f467fa6bf07cf57d7ec.zip |
r14960: don't declare variables mid-function
(This used to be commit 4537de9289ce025a240fe46a708434c195138d20)
Diffstat (limited to 'source4')
-rw-r--r-- | source4/ntvfs/common/notify.c | 3 |
1 files changed, 2 insertions, 1 deletions
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; |