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

Samuel Thibault samuel.thibault at ens-lyon.org
Wed Mar 27 14:17:52 EDT 2013


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


More information about the Speakup mailing list