diff options
author | Erich Eckner <git@eckner.net> | 2016-11-30 11:35:53 +0100 |
---|---|---|
committer | Erich Eckner <git@eckner.net> | 2017-02-16 13:23:50 +0100 |
commit | 9ccd9be8de1b0dbd9b4ba9cc1e551e8e8f68c2f4 (patch) | |
tree | 57f85d3711c9be22ca50be5d5cd7f86aa55ac8c3 | |
parent | 24aff479581963a3dbd87c86d27c4e2aaac27507 (diff) | |
download | coreutils-9ccd9be8de1b0dbd9b4ba9cc1e551e8e8f68c2f4.tar.xz |
uniq: cleanupuniq-versuch
-rw-r--r-- | src/uniq.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/uniq.c b/src/uniq.c index ecf05825e..cdd014ce8 100644 --- a/src/uniq.c +++ b/src/uniq.c @@ -257,7 +257,7 @@ size_opt (char const *opt, char const *msgid) static void writeline (struct line const *line, - bool match, uintmax_t linecount, FILE *outfp, const char *outfile) + bool match, uintmax_t linecount, FILE *outfp) { if (! (linecount == 0 ? output_unique : !match ? output_first_repeated @@ -381,7 +381,7 @@ check_file (const char *infile, const char *outfile, char delimiter) if (! the_same || output_later_repeated) { - writeline (line-1, the_same, match_count, outfp, outfile); + writeline (line, the_same, match_count, outfp); if (! the_same) match_count = 0; } @@ -422,7 +422,7 @@ check_file (const char *infile, const char *outfile, char delimiter) } else { - writeline (line-1, false, match_count, outfp, outfile); + writeline (line, false, match_count, outfp); } xfclose (infp, infile); |