diff options
author | rsc <devnull@localhost> | 2005-01-04 21:25:48 +0000 |
---|---|---|
committer | rsc <devnull@localhost> | 2005-01-04 21:25:48 +0000 |
commit | 4bd8ec4c1cf24fb1aff5d582cc0eaf58e8f8fd0e (patch) | |
tree | f926179a39be9dfee1b638c89e1b0a2e43998e9e | |
parent | 0daf9c09417038872f2f8c43aac95dc10a035c3d (diff) | |
download | plan9port-4bd8ec4c1cf24fb1aff5d582cc0eaf58e8f8fd0e.tar.gz plan9port-4bd8ec4c1cf24fb1aff5d582cc0eaf58e8f8fd0e.tar.bz2 plan9port-4bd8ec4c1cf24fb1aff5d582cc0eaf58e8f8fd0e.zip |
change comparison function to be consistent.
(now qsort on sunos should stop crashing.)
-rw-r--r-- | src/cmd/ls.C | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cmd/ls.C b/src/cmd/ls.C index 8bdeab61..4423a877 100644 --- a/src/cmd/ls.C +++ b/src/cmd/ls.C @@ -282,7 +282,7 @@ compar(NDir *a, NDir *b) i = strcmp(ad->name, bd->name); } if(i == 0) - i = (a<b? -1 : 1); + i = (ad<bd? -1 : 1); if(rflag) i = -i; return i; |