mirror of
https://github.com/netwide-assembler/nasm.git
synced 2025-07-24 10:25:42 -04: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;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
char *nasm_strcat(char *one, char *two)
|
char *nasm_strcat(const char *one, const char *two)
|
||||||
{
|
{
|
||||||
char *rslt;
|
char *rslt;
|
||||||
int l1 = strlen(one);
|
int l1 = strlen(one);
|
||||||
|
@ -321,7 +321,7 @@ int32_t src_get_linnum(void);
|
|||||||
*/
|
*/
|
||||||
int src_get(int32_t *xline, char **xname);
|
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);
|
void null_debug_routine(const char *directive, const char *params);
|
||||||
extern struct dfmt null_debug_form;
|
extern struct dfmt null_debug_form;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user