diff options
author | Peter Breitenlohner <peb@mppmu.mpg.de> | 2010-05-11 08:39:25 +0000 |
---|---|---|
committer | Peter Breitenlohner <peb@mppmu.mpg.de> | 2010-05-11 08:39:25 +0000 |
commit | 0f0e478dba51669836f1a6f3078a27c64816f151 (patch) | |
tree | d3f9a8d7db1d8f63498811a1ce6af6b47d586d47 /Build/source/texk/seetexk/dvibook.c | |
parent | 4fd54ee7ff93817274972e2e2ed63c4c5c49cc76 (diff) |
SET_BINARY and casts to void
git-svn-id: svn://tug.org/texlive/trunk@18196 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Build/source/texk/seetexk/dvibook.c')
-rw-r--r-- | Build/source/texk/seetexk/dvibook.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Build/source/texk/seetexk/dvibook.c b/Build/source/texk/seetexk/dvibook.c index d02dfe73d33..d33d383f9c7 100644 --- a/Build/source/texk/seetexk/dvibook.c +++ b/Build/source/texk/seetexk/dvibook.c @@ -22,7 +22,7 @@ #else #define FOPEN_RBIN_MODE "r" #define FOPEN_RBIN_MODE "w" -#define SET_BINARY(x) 0 +#define SET_BINARY(x) (void)0 extern char *optarg; extern int optind; #endif @@ -429,13 +429,13 @@ Usage: %s [-s signature] [-q] [-i infile] [-o outfile] [infile [outfile]]\n", DVIFileName = "`stdin'"; inf = stdin; if (!isatty(fileno(inf))) - (void)SET_BINARY(fileno(inf)); + SET_BINARY(fileno(inf)); } else if ((inf = fopen(DVIFileName, FOPEN_RBIN_MODE)) == 0) error(1, -1, "cannot read %s", DVIFileName); if (outname == NULL) { outf = stdout; if (!isatty(fileno(outf))) - (void)SET_BINARY(fileno(outf)); + SET_BINARY(fileno(outf)); } else if ((outf = fopen(outname, FOPEN_WBIN_MODE)) == 0) error(1, -1, "cannot write %s", outname); |