Tobias Klauser 7e88d00c09 cache: fix GCC warning and avoid variable shadowing
Fix the following GCC warning, introduced in commit 66d032ad443a
("cache_mngr: add include callback v2"):

cache.c: In function ‘cache_include.isra.3’:
cache.c:810:6: warning: ‘diff’ may be used uninitialized in this function [-Wmaybe-uninitialized]
      cb_v2(cache, clone, obj, diff,
            ^

Also don't redeclare the uint64_t diff variable, to avoid shadowing.

Signed-off-by: Tobias Klauser <tklauser@distanz.ch>
Signed-off-by: Thomas Haller <thaller@redhat.com>

Fixes: 66d032ad443a9d67bd26ed3e801cddf9f0e71ae7

http://lists.infradead.org/pipermail/libnl/2016-December/002258.html
2016-12-02 13:37:35 +01:00
..
2016-02-12 18:09:04 +01:00
2016-12-01 16:49:43 +01:00
2012-08-30 03:19:04 +06:00
2012-11-10 10:22:26 +01:00
2016-11-28 22:14:15 +01:00