Re: [U-Boot] [PATCH] env_ubi.c: Correct pointer error in env load

2015-10-25 Thread Heiko Schocher
Hello Kevin, Am 23.10.2015 um 19:51 schrieb Kevin Smith: The variable "buf" in this function is a char array, and the function ubi_volume_read is expecting a char *. In the call, the address of the pointer is being taken, incorrectly passing a char **. The compiler warning was being silenced b

Re: [U-Boot] [PATCH] env_ubi.c: Correct pointer error in env load

2015-10-23 Thread Joe Hershberger
On Fri, Oct 23, 2015 at 12:51 PM, Kevin Smith wrote: > The variable "buf" in this function is a char array, and the > function ubi_volume_read is expecting a char *. In the call, the > address of the pointer is being taken, incorrectly passing a > char **. The compiler warning was being silenced

[U-Boot] [PATCH] env_ubi.c: Correct pointer error in env load

2015-10-23 Thread Kevin Smith
The variable "buf" in this function is a char array, and the function ubi_volume_read is expecting a char *. In the call, the address of the pointer is being taken, incorrectly passing a char **. The compiler warning was being silenced by the cast. Remove the address operator and the cast. Signe