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 1462a9b18..dc40ab4f1 100644
--- a/editors/diff.c
+++ b/editors/diff.c
@@ -1006,7 +1006,7 @@ int diff_main(int argc UNUSED_PARAM, char **argv)
1006 xfunc_error_retval = 1; 1006 xfunc_error_retval = 1;
1007 1007
1008 if (gotstdin && (S_ISDIR(stb[0].st_mode) || S_ISDIR(stb[1].st_mode))) 1008 if (gotstdin && (S_ISDIR(stb[0].st_mode) || S_ISDIR(stb[1].st_mode)))
1009 bb_error_msg_and_die("can't compare stdin to a directory"); 1009 bb_simple_error_msg_and_die("can't compare stdin to a directory");
1010 1010
1011 /* Compare metadata to check if the files are the same physical file. 1011 /* Compare metadata to check if the files are the same physical file.
1012 * 1012 *
@@ -1037,7 +1037,7 @@ int diff_main(int argc UNUSED_PARAM, char **argv)
1037#if ENABLE_FEATURE_DIFF_DIR 1037#if ENABLE_FEATURE_DIFF_DIR
1038 diffdir(file, s_start); 1038 diffdir(file, s_start);
1039#else 1039#else
1040 bb_error_msg_and_die("no support for directory comparison"); 1040 bb_simple_error_msg_and_die("no support for directory comparison");
1041#endif 1041#endif
1042 } else { 1042 } else {
1043 bool dirfile = S_ISDIR(stb[0].st_mode) || S_ISDIR(stb[1].st_mode); 1043 bool dirfile = S_ISDIR(stb[0].st_mode) || S_ISDIR(stb[1].st_mode);