@@ -61,7 +61,7 @@ static size_t write_data(char* ptr, size_t size, size_t nmemb, void* userdata)
61
61
return 0 ;
62
62
}
63
63
64
- auto * const resp = static_cast <http::response*>(userdata);
64
+ auto * const resp = static_cast <http::response*>(userdata);
65
65
assert (size == 1 );
66
66
(void )size; // avoid warning in release builds
67
67
assert (resp);
@@ -110,7 +110,7 @@ static size_t write_header(char* ptr, size_t size, size_t nmemb, void* userdata)
110
110
111
111
logging::log_debug (LOG_TAG, " received header: %s" , std::string (ptr, nmemb).c_str ());
112
112
113
- auto * const resp = static_cast <http::response*>(userdata);
113
+ auto * const resp = static_cast <http::response*>(userdata);
114
114
assert (resp);
115
115
for (size_t i = 0 ; i < nmemb; i++) {
116
116
if (ptr[i] != ' :' ) {
@@ -127,7 +127,7 @@ static size_t write_header(char* ptr, size_t size, size_t nmemb, void* userdata)
127
127
static size_t read_data (char * buffer, size_t size, size_t nitems, void * userdata)
128
128
{
129
129
auto const limit = size * nitems;
130
- auto * ctx = static_cast <std::pair<std::string const &, size_t >*>(userdata);
130
+ auto * ctx = static_cast <std::pair<std::string const &, size_t >*>(userdata);
131
131
assert (ctx);
132
132
auto const unread = ctx->first .length () - ctx->second ;
133
133
if (0 == unread) {
@@ -398,7 +398,7 @@ void run_handler(std::function<invocation_response(invocation_request const&)> c
398
398
{
399
399
logging::log_info (LOG_TAG, " Initializing the C++ Lambda Runtime version %s" , aws::lambda_runtime::get_version ());
400
400
std::string endpoint (" http://" );
401
- if (auto * ep = std::getenv (" AWS_LAMBDA_RUNTIME_API" )) {
401
+ if (auto * ep = std::getenv (" AWS_LAMBDA_RUNTIME_API" )) {
402
402
assert (ep);
403
403
logging::log_debug (LOG_TAG, " LAMBDA_SERVER_ADDRESS defined in environment as: %s" , ep);
404
404
endpoint += ep;
0 commit comments