| 98 | } |
| 99 | |
| 100 | int reftable_buf_setlen(struct reftable_buf *buf, size_t len) |
| 101 | { |
| 102 | if (len > buf->len) |
| 103 | return -1; |
| 104 | if (len == buf->len) |
| 105 | return 0; |
| 106 | buf->buf[len] = '\0'; |
| 107 | buf->len = len; |
| 108 | return 0; |
| 109 | } |
| 110 | |
| 111 | int reftable_buf_cmp(const struct reftable_buf *a, const struct reftable_buf *b) |
| 112 | { |
no outgoing calls
no test coverage detected