[PATCH 3/3] staging: speakup: reuse native hex2bin()

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Andy Shevchenko, le Wed 27 Mar 2013 17:44:57 +0200, a ?crit :
>  	int num;

> +			if (*p1 == 'x' && !hex2bin((u8 *)&num, p1 + 1, 1)) {

That, however, won't fly on big-endian. You need to use a u8 temporary
variable and assign it to num afterwards.

Samuel


[Index of Archives]     [Linux for the Blind]     [Fedora Discussioin]     [Linux Kernel]     [Yosemite News]     [Big List of Linux Books]
  Powered by Linux