summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--nasmlib.c4
-rw-r--r--nasmlib.h4
2 files changed, 4 insertions, 4 deletions
diff --git a/nasmlib.c b/nasmlib.c
index c05746a..44e3a36 100644
--- a/nasmlib.c
+++ b/nasmlib.c
@@ -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) {
diff --git a/nasmlib.h b/nasmlib.h
index 43c07f0..aed490e 100644
--- a/nasmlib.h
+++ b/nasmlib.h
@@ -304,8 +304,8 @@ void saa_fpwrite(struct SAA *, FILE *);
*
* bsi() is case sensitive, bsii() is case insensitive.
*/
-int bsi(char *string, const char **array, int size);
-int bsii(char *string, const char **array, int size);
+int bsi(const char *string, const char **array, int size);
+int bsii(const char *string, const char **array, int size);
char *src_set_fname(char *newname);
int32_t src_set_linnum(int32_t newline);