diff --git a/asm/labels.c b/asm/labels.c index cf9acdd1..8c2223a0 100644 --- a/asm/labels.c +++ b/asm/labels.c @@ -147,7 +147,7 @@ static void out_symdef(char *name, int32_t segment, int64_t offset, * given label name. Creates a new one, if it isn't found, and if * `create' is true. */ -static union label *find_label(char *label, int create, int *created) +static union label *find_label(const char *label, int create, int *created) { char *prev; int prevlen, len; @@ -203,7 +203,7 @@ static union label *find_label(char *label, int create, int *created) return lfree++; } -bool lookup_label(char *label, int32_t *segment, int64_t *offset) +bool lookup_label(const char *label, int32_t *segment, int64_t *offset) { union label *lptr; @@ -220,7 +220,7 @@ bool lookup_label(char *label, int32_t *segment, int64_t *offset) return false; } -bool is_extern(char *label) +bool is_extern(const char *label) { union label *lptr; diff --git a/include/labels.h b/include/labels.h index 5ffdff60..3e8ac3ed 100644 --- a/include/labels.h +++ b/include/labels.h @@ -43,8 +43,8 @@ extern char lprefix[PREFIX_MAX]; extern char lpostfix[PREFIX_MAX]; -bool lookup_label(char *label, int32_t *segment, int64_t *offset); -bool is_extern(char *label); +bool lookup_label(const char *label, int32_t *segment, int64_t *offset); +bool is_extern(const char *label); void define_label(char *label, int32_t segment, int64_t offset, char *special, bool is_norm, bool isextrn); void redefine_label(char *label, int32_t segment, int64_t offset, char *special,