summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>2001-09-04 20:23:48 +0000
committerJim Meyering <jim@meyering.net>2001-09-04 20:23:48 +0000
commit87261b73b3b5fe672d9ea24713e919435a343cd2 (patch)
treec32024c94764dcf1d4ee9130bfc79d3290c9e003 /src
parent121f936e4f72c55bf54f2877ee3fcf01e78a058d (diff)
downloadcoreutils-87261b73b3b5fe672d9ea24713e919435a343cd2.tar.xz
(get_link_name): Update use of xreadlink.
Diffstat (limited to 'src')
-rw-r--r--src/ls.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/ls.c b/src/ls.c
index 420552ee0..33e1ecad4 100644
--- a/src/ls.c
+++ b/src/ls.c
@@ -2138,9 +2138,7 @@ gobble_file (const char *name, enum filetype type, int explicit_arg,
static void
get_link_name (const char *filename, struct fileinfo *f)
{
- size_t link_val_len;
-
- f->linkname = xreadlink (filename, &link_val_len);
+ f->linkname = xreadlink (filename);
if (f->linkname == NULL)
{
error (0, errno, _("cannot read symbolic link %s"),