aboutsummaryrefslogtreecommitdiff
path: root/coreutils/diff.c
diff options
context:
space:
mode:
authorDenis Vlasenko <vda.linux@googlemail.com>2006-12-21 13:23:14 +0000
committerDenis Vlasenko <vda.linux@googlemail.com>2006-12-21 13:23:14 +0000
commitbf66fbc8e2380717c1fab860cfc60c78582839dd (patch)
tree3ab3dd4df901851ff7f4345708592118766ba4aa /coreutils/diff.c
parent6910741067913d131d931b1e6424d3b8ed43e64f (diff)
downloadbusybox-w32-bf66fbc8e2380717c1fab860cfc60c78582839dd.tar.gz
busybox-w32-bf66fbc8e2380717c1fab860cfc60c78582839dd.tar.bz2
busybox-w32-bf66fbc8e2380717c1fab860cfc60c78582839dd.zip
introduce LONE_CHAR (optimized strcmp with one-char string)
Diffstat (limited to 'coreutils/diff.c')
-rw-r--r--coreutils/diff.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/coreutils/diff.c b/coreutils/diff.c
index 887679a0a..a49d5195a 100644
--- a/coreutils/diff.c
+++ b/coreutils/diff.c
@@ -1079,7 +1079,7 @@ static char **get_dir(char *path)
1079 1079
1080 dp = warn_opendir(path); 1080 dp = warn_opendir(path);
1081 while ((ep = readdir(dp))) { 1081 while ((ep = readdir(dp))) {
1082 if ((!strcmp(ep->d_name, "..")) || (!strcmp(ep->d_name, "."))) 1082 if (!strcmp(ep->d_name, "..") || LONE_CHAR(ep->d_name, '.'))
1083 continue; 1083 continue;
1084 add_to_dirlist(ep->d_name, NULL, NULL, 0); 1084 add_to_dirlist(ep->d_name, NULL, NULL, 0);
1085 } 1085 }