Permalink
Browse files

Fix typos on stdout & stderr branches

  • Loading branch information...
1 parent 3259cda commit 3e24c1d435f6e493908c5eb2e2585086c18f6c29 Mariano Wahlmann committed Nov 10, 2010
Showing with 2 additions and 2 deletions.
  1. +2 −2 src/embed/api.c
View
@@ -194,13 +194,13 @@ Parrot_api_set_stdhandles(ARGIN(PMC *interp_pmc), INTVAL stdin, INTVAL stdout, I
if(PIO_INVALID_HANDLE != (PIOHANDLE)stdout) {
PMC * const pmc = Parrot_pmc_new(interp, enum_class_FileHandle);
- Parrot_io_set_os_handle(interp, pmc, (PIOHANDLE)fd);
+ Parrot_io_set_os_handle(interp, pmc, (PIOHANDLE)stdout);
Parrot_io_sethandle(interp,PIO_STDOUT_FILENO,pmc);
}
if(PIO_INVALID_HANDLE != (PIOHANDLE)stderr) {
PMC * const pmc = Parrot_pmc_new(interp, enum_class_FileHandle);
- Parrot_io_set_os_handle(interp, pmc, (PIOHANDLE)fd);
+ Parrot_io_set_os_handle(interp, pmc, (PIOHANDLE)stderr);
Parrot_io_sethandle(interp,PIO_STDERR_FILENO,pmc);
}

0 comments on commit 3e24c1d

Please sign in to comment.