From patchwork Sun Dec 19 19:24:25 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sven Eckelmann X-Patchwork-Id: 675 Return-Path: Received: from v3-1039.vlinux.de (narfation.org [79.140.41.39]) by open-mesh.org (Postfix) with ESMTPS id 481B3154362 for ; Sun, 19 Dec 2010 20:24:22 +0100 (CET) Received: from sven-desktop.lazhur.ath.cx (i59F6CFE9.versanet.de [89.246.207.233]) by v3-1039.vlinux.de (Postfix) with ESMTPSA id AF8ED94024; Sun, 19 Dec 2010 20:24:33 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=narfation.org; s=mail; t=1292786673; bh=ZhDT2/+J28yDkpPyHc7ALiGvr52yZAcaxik3rVJbnX8=; h=From:To:Cc:Subject:Date:Message-Id; b=cpxXZIfzWNdWCgeybojaP63BAgGOhI2y8HYMUkePDNMlMzIXPodHFkdzbvBGwitb0 JX0gvQ1vmEaETxy/k2il8GOsB2/lQWTA6KNfrpaTo+wzoGWvoGgi/nX240P7CPOgNb qQkkc6ZbnBRFYK181BB/IslRDLKcTYjjQJhjJU0Y= From: Sven Eckelmann To: b.a.t.m.a.n@lists.open-mesh.org Date: Sun, 19 Dec 2010 20:24:25 +0100 Message-Id: <1292786665-17113-1-git-send-email-sven@narfation.org> X-Mailer: git-send-email 1.7.2.3 Subject: [B.A.T.M.A.N.] [PATCH] batman-adv: Return hna count on local buffer fill X-BeenThere: b.a.t.m.a.n@lists.open-mesh.org X-Mailman-Version: 2.1.11 Precedence: list Reply-To: The list for a Better Approach To Mobile Ad-hoc Networking List-Id: The list for a Better Approach To Mobile Ad-hoc Networking List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 19 Dec 2010 19:24:22 -0000 hna_local_fill_buffer must return the number of added hna entries and not the last checked hash bucket. Signed-off-by: Sven Eckelmann --- batman-adv/translation-table.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/batman-adv/translation-table.c b/batman-adv/translation-table.c index a19e16c..a633b5a 100644 --- a/batman-adv/translation-table.c +++ b/batman-adv/translation-table.c @@ -162,7 +162,7 @@ int hna_local_fill_buffer(struct bat_priv *bat_priv, atomic_set(&bat_priv->hna_local_changed, 0); spin_unlock_bh(&bat_priv->hna_lhash_lock); - return i; + return count; } int hna_local_seq_print_text(struct seq_file *seq, void *offset)