Skip to content

Commit

Permalink
Build fix
Browse files Browse the repository at this point in the history
  • Loading branch information
sashacmc committed May 22, 2024
1 parent 4520aae commit 2a370d5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion examples/arduino/z_queryable.ino
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ void query_handler(const z_loaned_query_t *query, void *arg) {
z_view_keyexpr_from_string_unchecked(&ke, KEYEXPR);
z_owned_bytes_t reply_payload;
// TODO(sashacmc): VALUE encoding
z_query_reply(query, z_view_keyexpr_loan(&ke), z_bytes_move(reply_payload), NULL);
z_query_reply(query, z_view_keyexpr_loan(&ke), z_bytes_move(&reply_payload), NULL);

z_string_drop(z_string_move(&keystr));
}
Expand Down
2 changes: 1 addition & 1 deletion examples/zephyr/z_queryable.c
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ void query_handler(const z_loaned_query_t *query, void *ctx) {
(void)(ctx);
z_owned_string_t keystr;
z_keyexpr_to_string(z_query_keyexpr(query), &keystr);
z_string_view_t params;
z_view_string_t params;
z_query_parameters(query, &params);
printf(" >> [Queryable handler] Received Query '%s%.*s'\n", z_str_data(z_loan(keystr)), z_loan(params)->len,
z_loan(params)->val);
Expand Down

0 comments on commit 2a370d5

Please sign in to comment.