From 1c27b56095b4a82be7d072baabc09262cb4227e5 Mon Sep 17 00:00:00 2001 From: Paul Eggert Date: Thu, 16 Feb 2017 00:40:02 -0800 Subject: maint: xsetmode renamed to xbinary-io * bootstrap.conf, src/base64.c, src/cat.c, src/cksum.c: * src/head.c, src/md5sum.c, src/od.c, src/split.c, src/sum.c: * src/tac.c, src/tail.c, src/tee.c, src/tr.c, src/wc.c: Adjust to renaming of the xsetmode module to xbinary-io, and of the xsetmode function to xset_binary_mode. --- src/tr.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/tr.c') diff --git a/src/tr.c b/src/tr.c index 724297c9b..0c770d7a9 100644 --- a/src/tr.c +++ b/src/tr.c @@ -29,7 +29,7 @@ #include "fadvise.h" #include "quote.h" #include "safe-read.h" -#include "xsetmode.h" +#include "xbinary-io.h" #include "xstrtol.h" /* The official name of this program (e.g., no 'g' prefix). */ @@ -1786,8 +1786,8 @@ main (int argc, char **argv) /* Use binary I/O, since 'tr' is sometimes used to transliterate non-printable characters, or characters which are stripped away by text-mode reads (like CR and ^Z). */ - xsetmode (STDIN_FILENO, O_BINARY); - xsetmode (STDOUT_FILENO, O_BINARY); + xset_binary_mode (STDIN_FILENO, O_BINARY); + xset_binary_mode (STDOUT_FILENO, O_BINARY); fadvise (stdin, FADVISE_SEQUENTIAL); if (squeeze_repeats && non_option_args == 1) -- cgit v1.2.3-54-g00ecf