aboutsummaryrefslogtreecommitdiff
path: root/coreutils/sort.c
diff options
context:
space:
mode:
authorvda <vda@69ca8d6d-28ef-0310-b511-8ec308f3f277>2006-12-16 23:49:13 +0000
committervda <vda@69ca8d6d-28ef-0310-b511-8ec308f3f277>2006-12-16 23:49:13 +0000
commit8037e89b2e9c5a485bd57f4fe40f4659c25ca7b9 (patch)
tree6dc013e44d2281eb1e6f61c4bca1ae7546001f79 /coreutils/sort.c
parentb0ba03e9b3d460154fd09ef5676c18bf0770fdce (diff)
downloadbusybox-w32-8037e89b2e9c5a485bd57f4fe40f4659c25ca7b9.tar.gz
busybox-w32-8037e89b2e9c5a485bd57f4fe40f4659c25ca7b9.tar.bz2
busybox-w32-8037e89b2e9c5a485bd57f4fe40f4659c25ca7b9.zip
inline strcmp(s, "-") [actually macro-ize it for now - gcc is too stupid]
git-svn-id: svn://busybox.net/trunk/busybox@16977 69ca8d6d-28ef-0310-b511-8ec308f3f277
Diffstat (limited to 'coreutils/sort.c')
-rw-r--r--coreutils/sort.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/coreutils/sort.c b/coreutils/sort.c
index c23bf9c60..c37810f1a 100644
--- a/coreutils/sort.c
+++ b/coreutils/sort.c
@@ -310,7 +310,7 @@ int sort_main(int argc, char **argv)
310 /* Open input files and read data */ 310 /* Open input files and read data */
311 for (i = argv[optind] ? optind : optind-1; argv[i]; i++) { 311 for (i = argv[optind] ? optind : optind-1; argv[i]; i++) {
312 fp = stdin; 312 fp = stdin;
313 if (i >= optind && (argv[i][0] != '-' || argv[i][1])) 313 if (i >= optind && NOT_LONE_DASH(argv[i]))
314 fp = xfopen(argv[i], "r"); 314 fp = xfopen(argv[i], "r");
315 for (;;) { 315 for (;;) {
316 line = GET_LINE(fp); 316 line = GET_LINE(fp);