projects
/
platform
/
upstream
/
nasm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
577f576
)
nasmlib: make nasm_strcat() take const arguments
author
H. Peter Anvin
<hpa@zytor.com>
Sun, 22 Feb 2009 01:54:31 +0000
(17:54 -0800)
committer
H. Peter Anvin
<hpa@zytor.com>
Sun, 22 Feb 2009 01:54:31 +0000
(17:54 -0800)
None of the strings passed to nasm_strcat() are modified, to
make them const.
nasmlib.c
patch
|
blob
|
history
nasmlib.h
patch
|
blob
|
history
diff --git
a/nasmlib.c
b/nasmlib.c
index
34dbbcf
..
8796879
100644
(file)
--- a/
nasmlib.c
+++ b/
nasmlib.c
@@
-597,7
+597,7
@@
int src_get(int32_t *xline, char **xname)
return 0;
}
-char *nasm_strcat(c
har *one,
char *two)
+char *nasm_strcat(c
onst char *one, const
char *two)
{
char *rslt;
int l1 = strlen(one);
diff --git
a/nasmlib.h
b/nasmlib.h
index
cb802b1
..
d901520
100644
(file)
--- a/
nasmlib.h
+++ b/
nasmlib.h
@@
-321,7
+321,7
@@
int32_t src_get_linnum(void);
*/
int src_get(int32_t *xline, char **xname);
-char *nasm_strcat(c
har *one,
char *two);
+char *nasm_strcat(c
onst char *one, const
char *two);
void null_debug_routine(const char *directive, const char *params);
extern struct dfmt null_debug_form;