diff options
author | Alan Coopersmith <alan.coopersmith@oracle.com> | 2013-01-03 00:19:30 -0800 |
---|---|---|
committer | Alan Coopersmith <alan.coopersmith@oracle.com> | 2013-01-03 00:19:30 -0800 |
commit | b6371ad6463cdc0c35e7ca5a34f1bd6d945266ec (patch) | |
tree | 254a068208617267b716301ea0c52cb15513c91a | |
parent | 15cfc3dcd9194fcca7715049eb1f49be2aa6d92f (diff) |
Use symbolic names instead of raw integers for stdin & stdout fd's
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
-rw-r--r-- | bdftopcf.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -165,7 +165,7 @@ main(int argc, char *argv[]) } } else - input = FontFileOpenFd(0); + input = FontFileOpenFd(STDIN_FILENO); if (bdfReadFont(&font, input, bit, byte, glyph, scan) != Successful) { fprintf(stderr, "%s: bdf input, %s, corrupt\n", program_name, input_name ? input_name : "<stdin>"); @@ -180,7 +180,7 @@ main(int argc, char *argv[]) } } else - output = FontFileOpenWriteFd(1); + output = FontFileOpenWriteFd(STDOUT_FILENO); if (pcfWriteFont(&font, output) != Successful) { fprintf(stderr, "%s: can't write pcf file %s\n", program_name, output_name ? output_name : "<stdout>"); |