Mercurial > hg > octave-nkf
changeset 10084:81e88250bf42
urlwrite: avoid using errno as a local variable
author | John W. Eaton <jwe@octave.org> |
---|---|
date | Mon, 11 Jan 2010 16:07:15 -0500 |
parents | 614ad9e7a17b |
children | 82d47b706424 |
files | src/ChangeLog src/DLD-FUNCTIONS/urlwrite.cc |
diffstat | 2 files changed, 8 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,3 +1,8 @@ +2010-01-11 John W. Eaton <jwe@octave.org> + + * DLD-FUNCTIONS/urlwrite.cc (curl_handle::lasterror): + Avoid using errno as a local variable name. + 2010-01-11 Jaroslav Hajek <highegg@gmail.com> * DLD-FUNCTIONS/lu.cc (Fluupdate): Add tests for LU updating.
--- a/src/DLD-FUNCTIONS/urlwrite.cc +++ b/src/DLD-FUNCTIONS/urlwrite.cc @@ -251,11 +251,11 @@ std::string lasterror (void) const { - CURLcode errno; + CURLcode errnum; - curl_easy_getinfo (rep->handle(), CURLINFO_OS_ERRNO, &errno); + curl_easy_getinfo (rep->handle(), CURLINFO_OS_ERRNO, &errnum); - return std::string (curl_easy_strerror (errno)); + return std::string (curl_easy_strerror (errnum)); } void set_ostream (std::ostream& os) const