diff options
Diffstat (limited to 'man3')
| -rw-r--r-- | man3/bsearch.3 | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/man3/bsearch.3 b/man3/bsearch.3 index ede91e3790..cf5fa7a0ab 100644 --- a/man3/bsearch.3 +++ b/man3/bsearch.3 @@ -89,9 +89,11 @@ then retrieves desired elements using #include <string.h> struct mi { - int nr; - char *name; -} months[] = { + int nr; + const char *name; +}; + +static struct mi months[] = { { 1, "jan" }, { 2, "feb" }, { 3, "mar" }, { 4, "apr" }, { 5, "may" }, { 6, "jun" }, { 7, "jul" }, { 8, "aug" }, { 9, "sep" }, {10, "oct" }, {11, "nov" }, {12, "dec" } |
