From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Date: Sun, 19 Dec 2010 00:33:42 +0100 From: Antonio Quartulli Message-ID: <20101218233342.GC30203@ritirata.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Subject: [B.A.T.M.A.N.] [PATCH] batman-adv: Modifing hna_local_fill_buffer() return value 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: , To: b.a.t.m.a.n@lists.open-mesh.org After changeset 1888, the return value of hna_local_fill_buffer() has not been changed to _count_. In this way an eroneous num_hna was calculated before sending the new OGM packet. Signed-off-by: Antonio Quartulli --- translation-table.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/translation-table.c b/translation-table.c index a19e16c..a633b5a 100644 --- a/translation-table.c +++ b/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) -- Antonio Quartulli ..each of us alone is worth nothing.. Ernesto "Che" Guevara