From 2d16bdd1baab50afc24790471c9d87b2029a8dfe Mon Sep 17 00:00:00 2001 From: maxim Date: Fri, 24 Jul 2009 10:03:25 +0000 Subject: [PATCH] b=20254 i=johann minor bugfix of rewritten router_proc.c (DECLARE_LL_PROC_PPOS_DECL should precede assignments with *ppos) --- lnet/lnet/router_proc.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/lnet/lnet/router_proc.c b/lnet/lnet/router_proc.c index cd02a2c..82a82af5 100644 --- a/lnet/lnet/router_proc.c +++ b/lnet/lnet/router_proc.c @@ -334,11 +334,14 @@ int LL_PROC_PROTO(proc_lnet_peers) const int tmpsiz = 256; int len; int *ver_p = (unsigned int *)(&filp->private_data); - int idx = LNET_PHASH_IDX_GET(*ppos); - int num = LNET_PHASH_NUM_GET(*ppos); + int idx; + int num; DECLARE_LL_PROC_PPOS_DECL; + idx = LNET_PHASH_IDX_GET(*ppos); + num = LNET_PHASH_NUM_GET(*ppos); + CLASSERT ((1 << LNET_PHASH_BITS) > LNET_PEER_HASHSIZE); LASSERT (!write); -- 1.8.3.1