* Creates a new `cu_match_t' object which will use the regular expression
* `regex' to match lines, see the `match_apply' method below. If the line
* matches, the callback passed in `callback' will be called along with the
- * pointer `user_pointer'.
+ * `user_data' pointer.
* The string that's passed to the callback depends on the regular expression:
* If the regular expression includes a sub-match, i. e. something like
* "value=([0-9][0-9]*)"
++(self->message_idx);
/* Resize messages buffer if needed */
- if (self->message_idx >= self->messages_max_len) {
+ if (self->message_idx >= (int)self->messages_max_len) {
INFO(UTIL_NAME ": Exceeded message buffer size: %zu",
self->messages_max_len);
if (self->resize_message_buffer(self, self->messages_max_len +
self->message_item_idx = 0;
}
-static int message_assembler(const char *row, char *const *matches,
- size_t matches_num, void *user_data) {
+static int message_assembler(__attribute__((unused)) const char *row,
+ char *const *matches, size_t matches_num,
+ void *user_data) {
if (user_data == NULL) {
ERROR(UTIL_NAME ": Invalid user_data pointer");
return -1;