summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlan Coopersmith <alan.coopersmith@oracle.com>2013-01-03 00:19:30 -0800
committerAlan Coopersmith <alan.coopersmith@oracle.com>2013-01-03 00:19:30 -0800
commitb6371ad6463cdc0c35e7ca5a34f1bd6d945266ec (patch)
tree254a068208617267b716301ea0c52cb15513c91a
parent15cfc3dcd9194fcca7715049eb1f49be2aa6d92f (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.c4
1 files 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 : "<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>");