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

style: update code format with newer clang-format tool #14

Merged
merged 1 commit into from
Jul 17, 2024
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/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ on:
jobs:
check:
name: Check code format
runs-on: ubuntu-20.04
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@v3
with:
Expand Down
20 changes: 10 additions & 10 deletions main/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -226,8 +226,8 @@ str_replace(char *input, char *search, char *replace) {

regex_t regex;
regmatch_t match;
char * str = input;
char * output = NULL;
char *str = input;
char *output = NULL;
size_t index = 0;
int previous_match_finish = 0;

Expand Down Expand Up @@ -394,7 +394,7 @@ static mender_err_t
shell_write_cb(uint8_t *data, size_t length) {

mender_err_t ret = MENDER_OK;
char * buffer, *tmp;
char *buffer, *tmp;

/* Ensure new line is "\r\n" to have a proper display of the data in the shell */
if (NULL == (buffer = strndup((char *)data, length))) {
Expand Down Expand Up @@ -490,13 +490,13 @@ app_main(void) {
/* Initialize mender-client */
mender_keystore_t identity[] = { { .name = "mac", .value = mac_address }, { .name = NULL, .value = NULL } };
mender_client_config_t mender_client_config = { .identity = identity,
.artifact_name = artifact_name,
.device_type = device_type,
.host = NULL,
.tenant_token = NULL,
.authentication_poll_interval = 0,
.update_poll_interval = 0,
.recommissioning = false };
.artifact_name = artifact_name,
.device_type = device_type,
.host = NULL,
.tenant_token = NULL,
.authentication_poll_interval = 0,
.update_poll_interval = 0,
.recommissioning = false };
mender_client_callbacks_t mender_client_callbacks = { .network_connect = network_connect_cb,
.network_release = network_release_cb,
.authentication_success = authentication_success_cb,
Expand Down
Loading