]> www.infradead.org Git - mtd-utils.git/commit
mtd-utils: common.h: simple_strtoll type usage
authorBrian Norris <computersforpeace@gmail.com>
Wed, 16 Feb 2011 01:47:58 +0000 (17:47 -0800)
committerArtem Bityutskiy <Artem.Bityutskiy@nokia.com>
Fri, 25 Feb 2011 08:52:57 +0000 (10:52 +0200)
commit1b083e0c9011f32028a79d4ad707deaa17ad1b5e
tree9d371cd92000a6e439f60f9dc74f007d33e992eb
parent70f86090720d7b5b8203ee43356f8c6f79219896
mtd-utils: common.h: simple_strtoll type usage

We must use "long long" and "unsigned long long" types when
implementing the functions "simple_strtoll()" and "simple_strtoull()",
respectively. This prevents casting/truncation errors on systems where
"long" is not the same size as "long long" (that is, on most systems).

Signed-off-by: Brian Norris <computersforpeace@gmail.com>
Acked-by: Mike Frysinger <vapier@gentoo.org>
Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy@nokia.com>
include/common.h