Avoid garbage returns.
* posix.c (set-current-input-port): Return current-input-port. (force_output): Return scm_unspecified.
This commit is contained in:
parent
696ff8bc77
commit
0da6a4a248
2
posix.c
2
posix.c
|
@ -42,6 +42,7 @@ force_output (SCM p) ///((arity . n))
|
|||
if (TYPE (p) == PAIR && TYPE (car (p)) == NUMBER) fd = VALUE (car (p));
|
||||
FILE *f = fd == 1 ? stdout : stderr;
|
||||
fflush (f);
|
||||
return cell_unspecified;
|
||||
}
|
||||
|
||||
SCM
|
||||
|
@ -60,4 +61,5 @@ SCM
|
|||
set_current_input_port (SCM port)
|
||||
{
|
||||
g_stdin = VALUE (port) ? fdopen (VALUE (port), "r") : stdin;
|
||||
return current_input_port ();
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue