Mercurial > hg > octave-lyh
diff src/oct-stream.cc @ 2435:3be97fe02051
[project @ 1996-10-27 21:31:29 by jwe]
author | jwe |
---|---|
date | Sun, 27 Oct 1996 21:31:30 +0000 |
parents | 6ee55c0f25a9 |
children | 5c2be7c820ed |
line wrap: on
line diff
--- a/src/oct-stream.cc +++ b/src/oct-stream.cc @@ -1904,9 +1904,9 @@ // Return current error message for this stream. string -octave_base_stream::error (bool clear_err, int& errno) +octave_base_stream::error (bool clear_err, int& err_num) { - errno = fail ? -1 : 0; + err_num = fail ? -1 : 0; string tmp = errmsg; @@ -2190,12 +2190,12 @@ } string -octave_stream::error (bool clear, int& errno) +octave_stream::error (bool clear, int& err_num) { string retval; if (stream_ok ("ferror", false)) - retval = rep->error (clear, errno); + retval = rep->error (clear, err_num); return retval; }