aboutsummaryrefslogtreecommitdiffstats
path: root/lib-src
diff options
context:
space:
mode:
Diffstat (limited to 'lib-src')
-rw-r--r--lib-src/etags.c2
-rw-r--r--lib-src/hexl.c4
2 files changed, 3 insertions, 3 deletions
diff --git a/lib-src/etags.c b/lib-src/etags.c
index 1b6ac83c9a8..39b90cc6cbf 100644
--- a/lib-src/etags.c
+++ b/lib-src/etags.c
@@ -1255,7 +1255,7 @@ main (int argc, char **argv)
1255 if (streq (tagfile, "-")) 1255 if (streq (tagfile, "-"))
1256 { 1256 {
1257 tagf = stdout; 1257 tagf = stdout;
1258 SET_BINARY (fileno (stdout)); 1258 set_binary_mode (STDOUT_FILENO, O_BINARY);
1259 } 1259 }
1260 else 1260 else
1261 tagf = fopen (tagfile, append_to_tagfile ? "ab" : "wb"); 1261 tagf = fopen (tagfile, append_to_tagfile ? "ab" : "wb");
diff --git a/lib-src/hexl.c b/lib-src/hexl.c
index 2c7e8c44161..319ce8bc890 100644
--- a/lib-src/hexl.c
+++ b/lib-src/hexl.c
@@ -76,7 +76,7 @@ main (int argc, char **argv)
76 else if (!strcmp (*argv, "-un") || !strcmp (*argv, "-de")) 76 else if (!strcmp (*argv, "-un") || !strcmp (*argv, "-de"))
77 { 77 {
78 un_flag = true; 78 un_flag = true;
79 SET_BINARY (fileno (stdout)); 79 set_binary_mode (fileno (stdout), O_BINARY);
80 } 80 }
81 else if (!strcmp (*argv, "-hex")) 81 else if (!strcmp (*argv, "-hex"))
82 /* Hex is the default and is only base supported. */; 82 /* Hex is the default and is only base supported. */;
@@ -109,7 +109,7 @@ main (int argc, char **argv)
109 { 109 {
110 fp = stdin; 110 fp = stdin;
111 if (!un_flag) 111 if (!un_flag)
112 SET_BINARY (fileno (stdin)); 112 set_binary_mode (fileno (stdin), O_BINARY);
113 } 113 }
114 else 114 else
115 { 115 {