From b6371ad6463cdc0c35e7ca5a34f1bd6d945266ec Mon Sep 17 00:00:00 2001 From: Alan Coopersmith Date: Thu, 3 Jan 2013 00:19:30 -0800 Subject: Use symbolic names instead of raw integers for stdin & stdout fd's Signed-off-by: Alan Coopersmith --- bdftopcf.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bdftopcf.c b/bdftopcf.c index f3bd6ee..1deab8b 100644 --- a/bdftopcf.c +++ b/bdftopcf.c @@ -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 : ""); @@ -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 : ""); -- cgit v1.2.3