Skip to content

Commit

Permalink
chore: format code
Browse files Browse the repository at this point in the history
  • Loading branch information
jean-roland committed Jul 1, 2024
1 parent 09e9d8b commit 0db9975
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/net/query.c
Original file line number Diff line number Diff line change
Expand Up @@ -66,12 +66,12 @@ _z_query_t _z_query_create(const _z_value_t *value, _z_keyexpr_t *key, const _z_
q._request_id = request_id;
q._zn = zn;
q._parameters = (char *)z_malloc(parameters->len + 1);
memcpy(q._parameters, parameters->start, parameters->len); // TODO: Might be movable, Issue #482
memcpy(q._parameters, parameters->start, parameters->len); // TODO: Might be movable, Issue #482
q._parameters[parameters->len] = 0;
q._anyke = (strstr(q._parameters, Z_SELECTOR_QUERY_MATCH) == NULL) ? false : true;
q._key = _z_keyexpr_steal(key);
_z_bytes_copy(&q.attachment, &attachment);
_z_value_copy(&q._value, value); // FIXME: Move encoding, Issue #482
_z_value_copy(&q._value, value); // FIXME: Move encoding, Issue #482
return q;
}

Expand Down
2 changes: 1 addition & 1 deletion src/net/reply.c
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ _z_reply_t _z_reply_create(_z_keyexpr_t keyexpr, z_reply_tag_t tag, _z_id_t id,
reply.data.sample.timestamp = _z_timestamp_duplicate(timestamp);
_z_bytes_copy(&reply.data.sample.payload, &payload);
_z_bytes_copy(&reply.data.sample.attachment, &attachment);
_z_encoding_copy(&reply.data.sample.encoding, &encoding); // FIXME: Move encoding, Issue #482
_z_encoding_copy(&reply.data.sample.encoding, &encoding); // FIXME: Move encoding, Issue #482
}
return reply;
}
Expand Down
2 changes: 1 addition & 1 deletion src/net/sample.c
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ _z_sample_t _z_sample_create(_z_keyexpr_t *key, const _z_bytes_t payload, const
s.qos = qos;
_z_bytes_copy(&s.payload, &payload);
_z_bytes_copy(&s.attachment, &attachment);
_z_encoding_copy(&s.encoding, &encoding); // FIXME: Move encoding, Issue #482
_z_encoding_copy(&s.encoding, &encoding); // FIXME: Move encoding, Issue #482
return s;
}
#else
Expand Down

0 comments on commit 0db9975

Please sign in to comment.