more use const for interface of libbb/compare_string_array, example usage for e2fsprogs/fsck

This commit is contained in:
"Vladimir N. Oleynik" 2005-11-26 10:33:55 +00:00
parent 4eb2fd6826
commit 61ff4b3973
3 changed files with 7 additions and 11 deletions

View file

@ -17,7 +17,8 @@
#include <string.h>
/* returns the array number of the string */
extern unsigned short compare_string_array(const char *string_array[], const char *key)
extern unsigned short
compare_string_array(const char * const string_array[], const char *key)
{
unsigned short i;