summaryrefslogtreecommitdiff
path: root/parse.c
diff options
context:
space:
mode:
authorAlan Coopersmith <alan.coopersmith@oracle.com>2011-10-07 18:02:34 -0700
committerAlan Coopersmith <alan.coopersmith@oracle.com>2011-10-07 18:02:34 -0700
commitb9770941ae829ad2cb985efe809d6e3dd690648b (patch)
tree8a7373b23d8099bcbe627865ae0a2ac662d2af11 /parse.c
parent0ecf5f3251033ab6efa1a0d881f75ed9ce60b5a4 (diff)
Call strdup directly, instead of via copy macro
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
Diffstat (limited to 'parse.c')
-rw-r--r--parse.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/parse.c b/parse.c
index 0496388..d14cbf8 100644
--- a/parse.c
+++ b/parse.c
@@ -376,7 +376,7 @@ define2(const char *name, const char *val, struct inclist *file)
debug(1,("redefining %s from %s to %s in file %s\n",
name, (*sp)->s_value, val, file->i_file));
free((*sp)->s_value);
- (*sp)->s_value = copy(val);
+ (*sp)->s_value = strdup(val);
return;
}
@@ -392,8 +392,8 @@ define2(const char *name, const char *val, struct inclist *file)
fatalerr("malloc()/realloc() failure in insert_defn()\n");
debug(1,("defining %s to %s in file %s\n", name, val, file->i_file));
- stab->s_name = copy(name);
- stab->s_value = copy(val);
+ stab->s_name = strdup(name);
+ stab->s_value = strdup(val);
*sp = stab;
}