Thread (23 messages) 23 messages, 6 authors, 2021-09-13

Re: [PATCH v2 1/7] remote-curl: pass "struct strvec *" instead of int/char ** pair

From: Carlo Arenas <hidden>
Date: 2021-09-12 00:36:36

On Sat, Sep 11, 2021 at 5:16 PM Ævar Arnfjörð Bjarmason
[off-list ref] wrote:
We'll be changing the "int nr" in the "struct strvec" to "int size_t"
Did you mean "size_t nr"?
quoted hunk ↗ jump to hunk
-static int push_git(struct discovery *heads, int nr_spec, const char **specs)
+static int push_git(struct discovery *heads, struct strvec *specs)
 {
        struct rpc_state rpc;
-       int i, err;
+       int i;
you are already splitting them, why not then change 'i' also to be a size_t?

Carlo
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help