aboutsummaryrefslogtreecommitdiffstats
path: root/node.c
diff options
context:
space:
mode:
authorArnold D. Robbins <arnold@skeeve.com>2010-12-19 22:50:17 +0200
committerArnold D. Robbins <arnold@skeeve.com>2010-12-19 22:50:17 +0200
commit1267f2e3fe6b45d62ce933c765aa9b5cdc14074f (patch)
treed4b6cd94730c4c0222468970a731d6f840777d12 /node.c
parentdc30cc0563434212d57cdf9bafe0da50fa7dd477 (diff)
downloadegawk-1267f2e3fe6b45d62ce933c765aa9b5cdc14074f.tar.gz
egawk-1267f2e3fe6b45d62ce933c765aa9b5cdc14074f.tar.bz2
egawk-1267f2e3fe6b45d62ce933c765aa9b5cdc14074f.zip
Work on char* vs const char *.
Diffstat (limited to 'node.c')
-rw-r--r--node.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/node.c b/node.c
index 820a3442..7a926f3d 100644
--- a/node.c
+++ b/node.c
@@ -342,7 +342,7 @@ mk_number(AWKNUM x, unsigned int flags)
/* make_str_node --- make a string node */
NODE *
-r_make_str_node(char *s, unsigned long len, int flags)
+r_make_str_node(const char *s, unsigned long len, int flags)
{
NODE *r;
getnode(r);
@@ -355,7 +355,7 @@ r_make_str_node(char *s, unsigned long len, int flags)
#endif /* defined MBS_SUPPORT */
if (flags & ALREADY_MALLOCED)
- r->stptr = s;
+ r->stptr = (char *) s;
else {
emalloc(r->stptr, char *, len + 2, "make_str_node");
memcpy(r->stptr, s, len);