diff options
author | Peter Wemm <peter@FreeBSD.org> | 2002-09-02 05:50:28 +0000 |
---|---|---|
committer | Peter Wemm <peter@FreeBSD.org> | 2002-09-02 05:50:28 +0000 |
commit | b2b29aad0d0d63394479a7459a0f17936ce7c064 (patch) | |
tree | 8440832ece5130fad994f5f3489b01676ab1ca4a /contrib/cvs/src/subr.c | |
parent | 025111ae1321e9d30f5615b762a47fb354971ba1 (diff) |
Notes
Diffstat (limited to 'contrib/cvs/src/subr.c')
-rw-r--r-- | contrib/cvs/src/subr.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/contrib/cvs/src/subr.c b/contrib/cvs/src/subr.c index 8211a77788edf..75f26cb7bbd09 100644 --- a/contrib/cvs/src/subr.c +++ b/contrib/cvs/src/subr.c @@ -123,7 +123,7 @@ expand_string (strptr, n, newsize) /* *STR is a pointer to a malloc'd string. *LENP is its allocated length. Add SRC to the end of it, reallocating if necessary. */ void -allocate_and_strcat (str, lenp, src) +xrealloc_and_strcat (str, lenp, src) char **str; size_t *lenp; const char *src; @@ -742,9 +742,6 @@ resolve_symlink (filename) But that would require editing each filesubr.c and so the expedient hack seems to be looking at HAVE_READLINK. */ newname = xreadlink (*filename); -#else - error (1, 0, "internal error: islink doesn't like readlink"); -#endif if (isabsolute (newname)) { @@ -762,6 +759,9 @@ resolve_symlink (filename) free (*filename); *filename = fullnewname; } +#else + error (1, 0, "internal error: islink doesn't like readlink"); +#endif } } |