summaryrefslogtreecommitdiff
path: root/src/du.c
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>2000-01-12 06:36:56 +0000
committerJim Meyering <jim@meyering.net>2000-01-12 06:36:56 +0000
commit59457bee16baffa3904dfa14deb74c2dcf11c526 (patch)
tree0f4aea2e10b4e511ab1fd77a0bd25260b8fe00ad /src/du.c
parenta3b2c5389c8088a5d2b57ce0b1ea00531710e2ce (diff)
downloadcoreutils-59457bee16baffa3904dfa14deb74c2dcf11c526.tar.xz
(count_entry): Adjust to new calling convention for excluded_filename.
(main): Likewise, for add_exclude_file.
Diffstat (limited to 'src/du.c')
-rw-r--r--src/du.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/du.c b/src/du.c
index 7f1e76fe1..c150a1fe3 100644
--- a/src/du.c
+++ b/src/du.c
@@ -1,5 +1,5 @@
/* du -- summarize disk usage
- Copyright (C) 88, 89, 90, 91, 1995-1999 Free Software Foundation, Inc.
+ Copyright (C) 88, 89, 90, 91, 1995-2000 Free Software Foundation, Inc.
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
@@ -550,7 +550,7 @@ count_entry (const char *ent, int top, dev_t last_dev, int depth)
for (namep = name_space; *namep; namep += strlen (namep) + 1)
{
- if (!excluded_filename (exclude, namep))
+ if (!excluded_filename (exclude, namep, 0))
{
str_concatc (path, namep);
size += count_entry (namep, 0, dir_dev, depth + 1);
@@ -742,7 +742,7 @@ main (int argc, char **argv)
break;
case 'X':
- if (add_exclude_file (exclude, optarg, '\n') != 0)
+ if (add_exclude_file (add_exclude, exclude, optarg, '\n') != 0)
error (1, errno, "%s", optarg);
break;