diff options
author | H. Peter Anvin <hpa@zytor.com> | 2007-11-08 19:15:33 -0800 |
---|---|---|
committer | H. Peter Anvin <hpa@zytor.com> | 2007-11-08 19:15:33 -0800 |
commit | c84f1b927b0f0b1c9f0489cd4aa2667383f3e56f (patch) | |
tree | b63f3e96277cbcba0b21a40c072bd5f5403e9889 /nasmlib.c | |
parent | 5fbbc8c2e7fbf6756fd1e8a400c6295c2428b897 (diff) | |
download | nasm-c84f1b927b0f0b1c9f0489cd4aa2667383f3e56f.tar.gz nasm-c84f1b927b0f0b1c9f0489cd4aa2667383f3e56f.tar.bz2 nasm-c84f1b927b0f0b1c9f0489cd4aa2667383f3e56f.zip |
constipate the "str" argument to bsi() and bsii()
The string argument to bsi() and bsii() should be const.
Diffstat (limited to 'nasmlib.c')
-rw-r--r-- | nasmlib.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -785,7 +785,7 @@ const char *prefix_name(int token) /* * Binary search. */ -int bsi(char *string, const char **array, int size) +int bsi(const char *string, const char **array, int size) { int i = -1, j = size; /* always, i < index < j */ while (j - i >= 2) { @@ -801,7 +801,7 @@ int bsi(char *string, const char **array, int size) return -1; /* we haven't got it :( */ } -int bsii(char *string, const char **array, int size) +int bsii(const char *string, const char **array, int size) { int i = -1, j = size; /* always, i < index < j */ while (j - i >= 2) { |