aboutsummaryrefslogtreecommitdiff
path: root/editors/diff.c
diff options
context:
space:
mode:
Diffstat (limited to 'editors/diff.c')
-rw-r--r--editors/diff.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/editors/diff.c b/editors/diff.c
index cf531460f..093e7b498 100644
--- a/editors/diff.c
+++ b/editors/diff.c
@@ -1027,7 +1027,7 @@ int diff_main(int argc UNUSED_PARAM, char **argv)
1027 xfunc_error_retval = 1; 1027 xfunc_error_retval = 1;
1028 1028
1029 if (gotstdin && (S_ISDIR(stb[0].st_mode) || S_ISDIR(stb[1].st_mode))) 1029 if (gotstdin && (S_ISDIR(stb[0].st_mode) || S_ISDIR(stb[1].st_mode)))
1030 bb_error_msg_and_die("can't compare stdin to a directory"); 1030 bb_simple_error_msg_and_die("can't compare stdin to a directory");
1031 1031
1032 /* Compare metadata to check if the files are the same physical file. 1032 /* Compare metadata to check if the files are the same physical file.
1033 * 1033 *
@@ -1063,7 +1063,7 @@ int diff_main(int argc UNUSED_PARAM, char **argv)
1063#if ENABLE_FEATURE_DIFF_DIR 1063#if ENABLE_FEATURE_DIFF_DIR
1064 diffdir(file, s_start); 1064 diffdir(file, s_start);
1065#else 1065#else
1066 bb_error_msg_and_die("no support for directory comparison"); 1066 bb_simple_error_msg_and_die("no support for directory comparison");
1067#endif 1067#endif
1068 } else { 1068 } else {
1069 bool dirfile = S_ISDIR(stb[0].st_mode) || S_ISDIR(stb[1].st_mode); 1069 bool dirfile = S_ISDIR(stb[0].st_mode) || S_ISDIR(stb[1].st_mode);