netapp plugin: Subtract snap_norm_used from norm_used in any case.
[collectd.git] / src / match_regex.c
index 15f3c77..1fca889 100644 (file)
@@ -109,17 +109,17 @@ static int mr_match_regexen (mr_regex_t *re_head, /* {{{ */
                {
                        DEBUG ("regex match: Regular expression `%s' matches `%s'.",
                                        re->re_str, string);
-                       return (FC_MATCH_MATCHES);
                }
                else
                {
                        DEBUG ("regex match: Regular expression `%s' does not match `%s'.",
                                        re->re_str, string);
+                       return (FC_MATCH_NO_MATCH);
                }
 
        }
 
-       return (FC_MATCH_NO_MATCH);
+       return (FC_MATCH_MATCHES);
 } /* }}} int mr_match_regexen */
 
 static int mr_config_add_regex (mr_regex_t **re_head, /* {{{ */
@@ -257,8 +257,10 @@ static int mr_destroy (void **user_data) /* {{{ */
        return (0);
 } /* }}} int mr_destroy */
 
-static int mr_match (const data_set_t *ds, const value_list_t *vl, /* {{{ */
-               notification_meta_t **meta, void **user_data)
+static int mr_match (const data_set_t __attribute__((unused)) *ds, /* {{{ */
+               const value_list_t *vl,
+               notification_meta_t __attribute__((unused)) **meta,
+               void **user_data)
 {
        mr_match_t *m;