aboutsummaryrefslogtreecommitdiff
path: root/coreutils
diff options
context:
space:
mode:
Diffstat (limited to 'coreutils')
-rw-r--r--coreutils/Kbuild3
-rw-r--r--coreutils/diff.c4
2 files changed, 4 insertions, 3 deletions
diff --git a/coreutils/Kbuild b/coreutils/Kbuild
index 55f19b4ca..dfdcbd43c 100644
--- a/coreutils/Kbuild
+++ b/coreutils/Kbuild
@@ -10,7 +10,8 @@ lib-y:=
10lib-$(CONFIG_BASENAME) += basename.o 10lib-$(CONFIG_BASENAME) += basename.o
11lib-$(CONFIG_CAL) += cal.o 11lib-$(CONFIG_CAL) += cal.o
12lib-$(CONFIG_CAT) += cat.o 12lib-$(CONFIG_CAT) += cat.o
13lib-$(CONFIG_LESS) += cat.o # less uses it if stdout isn't a tty 13lib-$(CONFIG_MORE) += cat.o # more uses it if stdout isn't a tty
14lib-$(CONFIG_LESS) += cat.o # less too
14lib-$(CONFIG_CATV) += catv.o 15lib-$(CONFIG_CATV) += catv.o
15lib-$(CONFIG_CHGRP) += chgrp.o chown.o 16lib-$(CONFIG_CHGRP) += chgrp.o chown.o
16lib-$(CONFIG_CHMOD) += chmod.o 17lib-$(CONFIG_CHMOD) += chmod.o
diff --git a/coreutils/diff.c b/coreutils/diff.c
index 73b576f31..fa6ef105e 100644
--- a/coreutils/diff.c
+++ b/coreutils/diff.c
@@ -82,7 +82,7 @@ static char *start;
82static const char *label1; 82static const char *label1;
83static const char *label2; 83static const char *label2;
84static struct stat stb1, stb2; 84static struct stat stb1, stb2;
85static char **dl; 85USE_FEATURE_DIFF_DIR(static char **dl;)
86USE_FEATURE_DIFF_DIR(static int dl_count;) 86USE_FEATURE_DIFF_DIR(static int dl_count;)
87 87
88struct cand { 88struct cand {
@@ -1051,7 +1051,7 @@ static int add_to_dirlist(const char *filename,
1051{ 1051{
1052 /* +2: with space for eventual trailing NULL */ 1052 /* +2: with space for eventual trailing NULL */
1053 dl = xrealloc(dl, (dl_count+2) * sizeof(dl[0])); 1053 dl = xrealloc(dl, (dl_count+2) * sizeof(dl[0]));
1054 dl[dl_count] = xstrdup(filename + (int)userdata); 1054 dl[dl_count] = xstrdup(filename + (int)(ptrdiff_t)userdata);
1055 dl_count++; 1055 dl_count++;
1056 return TRUE; 1056 return TRUE;
1057} 1057}