Re: [PATCH 2/2] mdadm: Forced type conversion to avoid truncation

From
jes.sorensen@gmail.com
Date
2017-03-28 17:57:15
Xiao Ni [off-list ref] writes:
Gcc reports it needs 19 bytes to right to disk->serial. Because the type of argument i
is int. But the meaning of i is failed disk number. So it doesn't need to use 19 bytes.
Just add a type conversion to avoid this building error

Signed-off-by: Xiao Ni <redacted>
---
 super-intel.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
Applied!

I reformatted the commit message to keep it within 80 characters/line,
but no change of content.

Cheers,
Jes
Thread (1 message) 1 message, 1 author, last reply 2017-03-28
Keyboard shortcuts
hback out one level
jnext message in thread / next series-diff position
kprevious message in thread / previous series-diff position
ldrill in
Escclose help / fold thread tree
?toggle this help