batman-adv: hash_add() has to discriminate on the return value
authorAntonio Quartulli <ordex@autistici.org>
Sat, 9 Jul 2011 22:36:36 +0000 (00:36 +0200)
committerMarek Lindner <lindner_marek@yahoo.de>
Mon, 22 Aug 2011 13:16:19 +0000 (15:16 +0200)
hash_add() returns 0 on success while returns -1 either on error and on
entry already present. The caller could use such information to select
its behaviour. For this reason it is useful that hash_add() returns -1
in case on error and returns 1 in case of entry already present.

Signed-off-by: Antonio Quartulli <ordex@autistici.org>
Signed-off-by: Marek Lindner <lindner_marek@yahoo.de>

No differences found