diff options
author | Thomas Cannon <mail@thomascannon.net> | 2012-01-09 16:20:53 +0000 |
---|---|---|
committer | Artem Bityutskiy <Artem.Bityutskiy@linux.intel.com> | 2012-01-13 23:56:56 +0200 |
commit | bacf173c87a936858125d3248067329c5b069e58 (patch) | |
tree | a07aae69a3cb946a892488ab67f2bdd615a69613 /mkfs.ubifs/hashtable/hashtable.h | |
parent | f1b35f27ea0912722a2c246a749d91b2a6fa1eae (diff) |
libmtd: Variable name same as function name causing compile to fail (Android)
When compiling mtd-utils against Android's bionic libc using the
supplied cross compiler environment it errors:
lib/libmtd.c: In function 'dev_node2num':
lib/libmtd.c:444: error: called object 'major' is not a function
lib/libmtd.c:445: error: called object 'minor' is not a function
lib/libmtd.c: In function 'mtd_probe_node':
lib/libmtd.c:1384: error: called object 'major' is not a function
lib/libmtd.c:1385: error: called object 'minor' is not a function
This patch updates the variable names for "major" and "minor" in two
places. It then compiles cleanly.
Artem: pick different names, also rename major1/minor1 variables for
consistency.
Signed-off-by: Thomas Cannon <mail at thomascannon.net>
Cc: linux-mtd at lists.infradead.org
Diffstat (limited to 'mkfs.ubifs/hashtable/hashtable.h')
0 files changed, 0 insertions, 0 deletions