more use const for interface of libbb/compare_string_array, example usage for e2fsprogs/fsck
This commit is contained in:
parent
4eb2fd6826
commit
61ff4b3973
3 changed files with 7 additions and 11 deletions
|
@ -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;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue