| 106 | } |
| 107 | |
| 108 | static int same_token(struct trailer_item *a, struct arg_item *b) |
| 109 | { |
| 110 | size_t a_len, b_len, min_len; |
| 111 | |
| 112 | if (!a->token) |
| 113 | return 0; |
| 114 | |
| 115 | a_len = token_len_without_separator(a->token, strlen(a->token)); |
| 116 | b_len = token_len_without_separator(b->token, strlen(b->token)); |
| 117 | min_len = (a_len > b_len) ? b_len : a_len; |
| 118 | |
| 119 | return !strncasecmp(a->token, b->token, min_len); |
| 120 | } |
| 121 | |
| 122 | static int same_value(struct trailer_item *a, struct arg_item *b) |
| 123 | { |
no test coverage detected