diff options
| author | yuangli <yuangli@mathworks.com> | 2022-07-29 13:53:29 +0100 |
|---|---|---|
| committer | yuangli <yuangli@mathworks.com> | 2022-07-29 13:53:29 +0100 |
| commit | 73d25f0e7b026d7b744e249d922f248376bcce5d (patch) | |
| tree | d3de8a383270ebc9dba7763b2c7a00a6deaa8bf6 /src/libgit2/transports | |
| parent | 68bbcefd35a8b3a864e9ed7598b19fefc5f74055 (diff) | |
| download | libgit2-73d25f0e7b026d7b744e249d922f248376bcce5d.tar.gz | |
remove build errors
Diffstat (limited to 'src/libgit2/transports')
| -rw-r--r-- | src/libgit2/transports/smart_pkt.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/src/libgit2/transports/smart_pkt.c b/src/libgit2/transports/smart_pkt.c index e368cb7e2..f9fde00f1 100644 --- a/src/libgit2/transports/smart_pkt.c +++ b/src/libgit2/transports/smart_pkt.c @@ -678,23 +678,23 @@ int git_pkt_buffer_wants( git_buf shallow_buf = GIT_BUF_INIT; git_oid_fmt(oid, git_shallowarray_get(wants->shallow_roots, i)); - git_buf_puts(&shallow_buf, "shallow "); - git_buf_put(&shallow_buf, oid, GIT_OID_HEXSZ); - git_buf_putc(&shallow_buf, '\n'); + git_str_puts(&shallow_buf, "shallow "); + git_str_put(&shallow_buf, oid, GIT_OID_HEXSZ); + git_str_putc(&shallow_buf, '\n'); - git_buf_printf(buf, "%04x%s", (unsigned int)git_buf_len(&shallow_buf) + 4, git_buf_cstr(&shallow_buf)); + git_str_printf(buf, "%04x%s", (unsigned int)git_str_len(&shallow_buf) + 4, git_str_cstr(&shallow_buf)); - if (git_buf_oom(buf)) + if (git_str_oom(buf)) return -1; } if (wants->depth > 0) { git_buf deepen_buf = GIT_BUF_INIT; - git_buf_printf(&deepen_buf, "deepen %d\n", wants->depth); - git_buf_printf(buf,"%04x%s", (unsigned int)git_buf_len(&deepen_buf) + 4, git_buf_cstr(&deepen_buf)); + git_str_printf(&deepen_buf, "deepen %d\n", wants->depth); + git_str_printf(buf,"%04x%s", (unsigned int)git_str_len(&deepen_buf) + 4, git_str_cstr(&deepen_buf)); - if (git_buf_oom(buf)) + if (git_str_oom(buf)) return -1; } |
