* Compare-and-swap */
| 2608 | * Compare-and-swap |
| 2609 | */ |
| 2610 | void clear_cas_option(struct push_cas_option *cas) |
| 2611 | { |
| 2612 | int i; |
| 2613 | |
| 2614 | for (i = 0; i < cas->nr; i++) |
| 2615 | free(cas->entry[i].refname); |
| 2616 | free(cas->entry); |
| 2617 | memset(cas, 0, sizeof(*cas)); |
| 2618 | } |
| 2619 | |
| 2620 | static struct push_cas *add_cas_entry(struct push_cas_option *cas, |
| 2621 | const char *refname, |
no outgoing calls
no test coverage detected