Mercurial > octave-nkf
changeset 17803:f5ada8597078
* main.in.cc (have_controlling_terminal): Return bool, not int.
author | John W. Eaton <jwe@octave.org> |
---|---|
date | Wed, 30 Oct 2013 00:34:14 -0400 |
parents | f461e4a47680 |
children | f3e25230b1f3 |
files | src/main.in.cc |
diffstat | 1 files changed, 3 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/src/main.in.cc Wed Oct 30 00:33:39 2013 -0400 +++ b/src/main.in.cc Wed Oct 30 00:34:14 2013 -0400 @@ -263,10 +263,10 @@ } -static int +static bool have_controlling_terminal (void) { - int retval = 0; + int retval = false; #if ! (defined (__WIN32__) || defined (__APPLE__)) || defined (__CYGWIN__) @@ -282,7 +282,7 @@ { gnulib::close (fd); - retval = 1; + retval = true; } #endif