mirror of
https://github.com/netwide-assembler/nasm.git
synced 2025-04-12 18:40:23 +08:00
nasmlib: make nasm_strcat() take const arguments
None of the strings passed to nasm_strcat() are modified, to make them const.
This commit is contained in:
parent
577f57614a
commit
00bf04f742
@ -597,7 +597,7 @@ int src_get(int32_t *xline, char **xname)
|
||||
return 0;
|
||||
}
|
||||
|
||||
char *nasm_strcat(char *one, char *two)
|
||||
char *nasm_strcat(const char *one, const char *two)
|
||||
{
|
||||
char *rslt;
|
||||
int l1 = strlen(one);
|
||||
|
@ -321,7 +321,7 @@ int32_t src_get_linnum(void);
|
||||
*/
|
||||
int src_get(int32_t *xline, char **xname);
|
||||
|
||||
char *nasm_strcat(char *one, char *two);
|
||||
char *nasm_strcat(const char *one, const char *two);
|
||||
|
||||
void null_debug_routine(const char *directive, const char *params);
|
||||
extern struct dfmt null_debug_form;
|
||||
|
Loading…
x
Reference in New Issue
Block a user