[PATCH] mtd-utils: common.h: simple_strtoll type usage

Mike Frysinger vapier.adi at gmail.com
Tue Feb 15 21:48:40 EST 2011

On Tue, Feb 15, 2011 at 20:47, Brian Norris wrote:
> 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).

Acked-by: Mike Frysinger <vapier at gentoo.org>

More information about the linux-mtd mailing list