Skip to content

Commit bcfda1d

Browse files
committed
reformat src/runtime.cpp
1 parent 8a8e762 commit bcfda1d

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/runtime.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ static size_t write_data(char* ptr, size_t size, size_t nmemb, void* userdata)
6161
return 0;
6262
}
6363

64-
auto *const resp = static_cast<http::response*>(userdata);
64+
auto* const resp = static_cast<http::response*>(userdata);
6565
assert(size == 1);
6666
(void)size; // avoid warning in release builds
6767
assert(resp);
@@ -110,7 +110,7 @@ static size_t write_header(char* ptr, size_t size, size_t nmemb, void* userdata)
110110

111111
logging::log_debug(LOG_TAG, "received header: %s", std::string(ptr, nmemb).c_str());
112112

113-
auto *const resp = static_cast<http::response*>(userdata);
113+
auto* const resp = static_cast<http::response*>(userdata);
114114
assert(resp);
115115
for (size_t i = 0; i < nmemb; i++) {
116116
if (ptr[i] != ':') {
@@ -127,7 +127,7 @@ static size_t write_header(char* ptr, size_t size, size_t nmemb, void* userdata)
127127
static size_t read_data(char* buffer, size_t size, size_t nitems, void* userdata)
128128
{
129129
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);
131131
assert(ctx);
132132
auto const unread = ctx->first.length() - ctx->second;
133133
if (0 == unread) {
@@ -398,7 +398,7 @@ void run_handler(std::function<invocation_response(invocation_request const&)> c
398398
{
399399
logging::log_info(LOG_TAG, "Initializing the C++ Lambda Runtime version %s", aws::lambda_runtime::get_version());
400400
std::string endpoint("http://");
401-
if (auto *ep = std::getenv("AWS_LAMBDA_RUNTIME_API")) {
401+
if (auto* ep = std::getenv("AWS_LAMBDA_RUNTIME_API")) {
402402
assert(ep);
403403
logging::log_debug(LOG_TAG, "LAMBDA_SERVER_ADDRESS defined in environment as: %s", ep);
404404
endpoint += ep;

0 commit comments

Comments
 (0)