# HG changeset patch # User John W. Eaton # Date 1263244035 18000 # Node ID 81e88250bf422472e868c965060d07be5eeecd81 # Parent 614ad9e7a17bd0135d2ebe4f4d4e70203dcc35ef urlwrite: avoid using errno as a local variable diff --git a/src/ChangeLog b/src/ChangeLog --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,3 +1,8 @@ +2010-01-11 John W. Eaton + + * DLD-FUNCTIONS/urlwrite.cc (curl_handle::lasterror): + Avoid using errno as a local variable name. + 2010-01-11 Jaroslav Hajek * DLD-FUNCTIONS/lu.cc (Fluupdate): Add tests for LU updating. diff --git a/src/DLD-FUNCTIONS/urlwrite.cc b/src/DLD-FUNCTIONS/urlwrite.cc --- 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