Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix formatting #723

Merged
merged 2 commits into from
Feb 23, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ jobs:
run: git config --global --add safe.directory "$GITHUB_WORKSPACE"
# Formatting checks
- name: "Code formatting check"
run: ./bin/inv_wrapper.sh format-code
run: ./bin/inv_wrapper.sh format-code --check

docs:
if: github.event.pull_request.draft == false
Expand Down
2 changes: 1 addition & 1 deletion src/codegen/MachineCodeGenerator.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ std::vector<uint8_t> MachineCodeGenerator::hashBytes(
{
// Use the new high-level hashing APIs as suggested for OpenSSL 3.0
// https://github.com/openssl/openssl/issues/12260
EVP_MD_CTX *mdctx;
EVP_MD_CTX* mdctx;
mdctx = EVP_MD_CTX_new();
EVP_DigestInit_ex(mdctx, EVP_md5(), NULL);
EVP_DigestUpdate(mdctx, bytes.data(), bytes.size());
Expand Down
2 changes: 1 addition & 1 deletion src/enclave/outside/attestation/attestation.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ namespace sgx {
#ifdef FAASM_SGX_HARDWARE_MODE
static void sha256sum(const uint8_t* data, uint32_t data_size, uint8_t* hash)
{
EVP_MD_CTX *ctx = EVP_MD_CTX_new();
EVP_MD_CTX* ctx = EVP_MD_CTX_new();
EVP_DigestInit_ex(ctx, EVP_sha256(), NULL);
EVP_DigestUpdate(ctx, data, data_size);
EVP_DigestFinal_ex(ctx, hash, &data_size);
Expand Down
3 changes: 2 additions & 1 deletion tests/test/wavm/test_ir_registry.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,8 @@ TEST_CASE_METHOD(IRModuleCacheTestFixture, "Test IR cache clearing", "[wasm]")
// Function and shared lib
std::string user = "demo";
std::string func = "echo";
std::string libPath = "/usr/local/faasm/runtime_root/lib/fake/libfakeLibA.so";
std::string libPath =
"/usr/local/faasm/runtime_root/lib/fake/libfakeLibA.so";

registry.getModule(user, func, "");
registry.getCompiledModule(user, func, "");
Expand Down