summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorScott Soule Cheloha <cheloha@cvs.openbsd.org>2022-01-01 02:20:39 +0000
committerScott Soule Cheloha <cheloha@cvs.openbsd.org>2022-01-01 02:20:39 +0000
commitd11ad8fef6a090d0ed41c4dee0e99e03365c84d5 (patch)
tree56e795ef9d19215652fd356361472207f001fe2f /lib
parent5edfdd377d1e992d20eb4ab82adaebc05be474fc (diff)
uniq(1): freopen(3) stdin, stdout
uniq(1) defaults to stdin and stdout, has exactly one input and one output, and permits the user to replace the default input and/or the default output with a given file. freopen(3) is the right idiom in this context. Get rid of file() and the extra FILE pointers. Switch from fprintf(3) to printf(3). While here, const the "str" argument to show(). Thread: https://marc.info/?l=openbsd-tech&m=164078603312936&w=2 ok millert@
Diffstat (limited to 'lib')
0 files changed, 0 insertions, 0 deletions