]> git.baikalelectronics.ru Git - kernel.git/commit
hexdump: avoid warning in test function
authorLinus Torvalds <torvalds@linux-foundation.org>
Sun, 19 Apr 2015 20:48:40 +0000 (13:48 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Sun, 19 Apr 2015 20:48:40 +0000 (13:48 -0700)
commit8d5a17ebeaf71e70734c46339e1f116803cc68d5
tree774debe2e203479832b2a2796faa8cd617d1c7ad
parent7dc74b152feedc2c55c25a89a95bf343c994f6d3
hexdump: avoid warning in test function

The test_data_1_le[] array is a const array of const char *.  To avoid
dropping any const information, we need to use "const char * const *",
not just "const char **".

I'm not sure why the different test arrays end up having different
const'ness, but let's make the pointer we use to traverse them as const
as possible, since we modify neither the array of pointers _or_ the
pointers we find in the array.

Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
lib/test-hexdump.c