diff options
Diffstat (limited to 'tools/rpmlead.c')
-rw-r--r-- | tools/rpmlead.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/rpmlead.c b/tools/rpmlead.c index febe877c9..b459adbac 100644 --- a/tools/rpmlead.c +++ b/tools/rpmlead.c @@ -11,13 +11,13 @@ int main(int argc, char **argv) struct rpmlead lead; if (argc == 1) { - fdi = fdDup(0); + fdi = fdDup(STDIN_FILENO); } else { fdi = fdOpen(argv[1], O_RDONLY, 0644); } readLead(fdi, &lead); - fdo = fdDup(1); + fdo = fdDup(STDOUT_FILENO); writeLead(fdo, &lead); return 0; |