| 3328 | }; |
| 3329 | |
| 3330 | static int |
| 3331 | append_opts(struct options *op, char ch) |
| 3332 | { |
| 3333 | void *p; |
| 3334 | |
| 3335 | if (op->s.len <= op->oidx) { |
| 3336 | p = pkg_realloc(op->s.s, op->oidx + 32); |
| 3337 | if (p == NULL) { |
| 3338 | return (-1); |
| 3339 | } |
| 3340 | op->s.s = p; |
| 3341 | op->s.len = op->oidx + 32; |
| 3342 | } |
| 3343 | op->s.s[op->oidx++] = ch; |
| 3344 | return (0); |
| 3345 | } |
| 3346 | |
| 3347 | static int |
| 3348 | append_opts_str(struct options *op, str *s) |
no outgoing calls
no test coverage detected