fix warnings

This commit is contained in:
hippoz 2023-01-16 02:43:23 +02:00
parent 63fd9dd698
commit 41d0b1a8e5
Signed by: hippoz
GPG key ID: 56C4E02A85F2FBED

View file

@ -533,7 +533,7 @@ int handle_list_activatable_names(bus_t *s, int i, wire_message_t *msg, wire_con
}
int handle_start_service_by_name(bus_t *s, int i, wire_message_t *msg, wire_context_t *ctx, wire_context_t *reply_ctx) {
char *name = TRYPTR(wire_get_name_string(ctx));
TRYPTR(wire_get_name_string(ctx));
/* unused flags value */
TRYPTR(wire_get_u32(ctx));
@ -558,7 +558,7 @@ int handle_add_match(bus_t *s, int i, wire_message_t *msg, wire_context_t *ctx,
}
int handle_remove_match(bus_t *s, int i, wire_message_t *msg, wire_context_t *ctx, wire_context_t *reply_ctx) {
char *match = TRYPTR(wire_get_string_check(ctx, 1, MATCH_RULE_MAX));
TRYPTR(wire_get_string_check(ctx, 1, MATCH_RULE_MAX));
STUB("handle_remove_match", "does nothing and returns success");