summaryrefslogtreecommitdiff
path: root/libbb/compare_string_array.c
diff options
context:
space:
mode:
author"Vladimir N. Oleynik"2005-11-26 10:33:55 +0000
committer"Vladimir N. Oleynik"2005-11-26 10:33:55 +0000
commit61ff4b39738085d1b88d934f619b840fd296c8a8 (patch)
tree3f0e8887aeecd290f7c32ae413ee6e720733c94b /libbb/compare_string_array.c
parent4eb2fd6826aa197dcdbf3618fa0cae9d2de73d86 (diff)
downloadbusybox-61ff4b39738085d1b88d934f619b840fd296c8a8.zip
busybox-61ff4b39738085d1b88d934f619b840fd296c8a8.tar.gz
more use const for interface of libbb/compare_string_array, example usage for e2fsprogs/fsck
Diffstat (limited to 'libbb/compare_string_array.c')
-rw-r--r--libbb/compare_string_array.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/libbb/compare_string_array.c b/libbb/compare_string_array.c
index 993b462..8961e00 100644
--- a/libbb/compare_string_array.c
+++ b/libbb/compare_string_array.c
@@ -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;