summaryrefslogtreecommitdiff
path: root/include.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 /include.c
parent0ecf5f3251033ab6efa1a0d881f75ed9ce60b5a4 (diff)
downloadxorg-util-makedepend-b9770941ae829ad2cb985efe809d6e3dd690648b.tar.gz
Call strdup directly, instead of via copy macro
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
Diffstat (limited to 'include.c')
-rw-r--r--include.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/include.c b/include.c
index ebbdacf..4455005 100644
--- a/include.c
+++ b/include.c
@@ -56,7 +56,7 @@ issymbolic(const char *dir, const char *component)
return (TRUE);
if (lstat(buf, &st) == 0
&& (st.st_mode & S_IFMT) == S_IFLNK) {
- *pp++ = copy(buf);
+ *pp++ = strdup(buf);
if (pp >= &notdotdot[ MAXDIRS ])
fatalerr("out of .. dirs, increase MAXDIRS\n");
return(TRUE);
@@ -153,12 +153,12 @@ newinclude(const char *newfile, const char *incstring)
ip = inclistp++;
if (inclistp == inclist + MAXFILES - 1)
fatalerr("out of space: increase MAXFILES\n");
- ip->i_file = copy(newfile);
+ ip->i_file = strdup(newfile);
if (incstring == NULL)
ip->i_incstring = ip->i_file;
else
- ip->i_incstring = copy(incstring);
+ ip->i_incstring = strdup(incstring);
inclistnext = inclistp;
return(ip);