* Return the length of the string not including any final * punctuation. E.g., the input "Signed-off-by:" would return * 13, stripping the trailing punctuation but retaining * internal punctuation. */
| 99 | * internal punctuation. |
| 100 | */ |
| 101 | static size_t token_len_without_separator(const char *token, size_t len) |
| 102 | { |
| 103 | while (len > 0 && !isalnum(token[len - 1])) |
| 104 | len--; |
| 105 | return len; |
| 106 | } |
| 107 | |
| 108 | static int same_token(struct trailer_item *a, struct arg_item *b) |
| 109 | { |
no outgoing calls
no test coverage detected