Skip to content

Commit

Permalink
Compilaton fix
Browse files Browse the repository at this point in the history
  • Loading branch information
sashacmc committed May 17, 2024
1 parent 2476c7f commit 000ee9d
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 5 deletions.
2 changes: 1 addition & 1 deletion examples/arduino/z_scout.ino
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ void fprintlocators(const z_str_array_t *locs) {
Serial.print("]");
}

void fprinthello(FILE *stream, const z_loaned_hello_t *hello) {
void fprinthello(const z_loaned_hello_t *hello) {
Serial.print(" >> Hello { zid: ");
fprintzid(hello->zid);
Serial.print(", whatami: ");
Expand Down
2 changes: 1 addition & 1 deletion examples/espidf/z_queryable.c
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ void wifi_init_sta(void) {
vEventGroupDelete(s_event_group_handler);
}

void query_handler(z_query_t *query, void *ctx) {
void query_handler(const z_loaned_query_t *query, void *ctx) {
(void)(ctx);
z_owned_str_t keystr;
// TODO(sashacmc): z_query_parameters
Expand Down
2 changes: 1 addition & 1 deletion examples/freertos_plus_tcp/z_get.c
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ void app_main(void) {

z_view_keyexpr_t ke;
if (z_view_keyexpr_from_string(&ke, KEYEXPR) < 0) {
printf("%s is not a valid key expression", keyexpr);
printf("%s is not a valid key expression", KEYEXPR);
return -1;
}

Expand Down
3 changes: 1 addition & 2 deletions tests/z_api_alignment_test.c
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,7 @@ int main(int argc, char **argv) {
char *keyexpr_str = (char *)z_malloc(keyexpr_len + 1);
memcpy(keyexpr_str, URI, keyexpr_len);
keyexpr_str[keyexpr_len] = '\0';
_ret_int8 = z_keyexpr_is_canon(keyexpr_str, keyexpr_len);
int8_t _ret_int8 = z_keyexpr_is_canon(keyexpr_str, keyexpr_len);
assert(_ret_int8 < 0);

#ifdef ZENOH_PICO
Expand Down Expand Up @@ -457,7 +457,6 @@ int main(int argc, char **argv) {

sleep(SLEEP * 5);

free(s1_res);
free(keyexpr_str);

return 0;
Expand Down

0 comments on commit 000ee9d

Please sign in to comment.