diff options
| author | Carlos Martín Nieto <carlos@cmartin.tk> | 2011-06-24 18:19:00 +0200 |
|---|---|---|
| committer | Carlos Martín Nieto <carlos@cmartin.tk> | 2011-06-27 02:09:49 +0200 |
| commit | c7c787ce0cd944c0e904d47c5ef1088de2fcf85a (patch) | |
| tree | 15e04675f3ebdeaa8290687bdee7cddc57fa3bcf /src/netops.h | |
| parent | ea7a5452f40147a510ae8d9e5805d9252e7ddef9 (diff) | |
| download | libgit2-c7c787ce0cd944c0e904d47c5ef1088de2fcf85a.tar.gz | |
Use gitno_buffer in the git transport
This allows us to leave out the buffer handling logic.
Signed-off-by: Carlos Martín Nieto <carlos@cmartin.tk>
Diffstat (limited to 'src/netops.h')
| -rw-r--r-- | src/netops.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/netops.h b/src/netops.h index 9c5279822..c828ed9f3 100644 --- a/src/netops.h +++ b/src/netops.h @@ -5,15 +5,15 @@ #define INCLUDE_netops_h__ typedef struct gitno_buffer { - void *data; + char *data; unsigned int len; unsigned int offset; int fd; } gitno_buffer; -void gitno_buffer_setup(gitno_buffer *buf, void *data, unsigned int len, int fd); +void gitno_buffer_setup(gitno_buffer *buf, char *data, unsigned int len, int fd); int gitno_recv(gitno_buffer *buf); -void gitno_consume(gitno_buffer *buf, void *ptr); +void gitno_consume(gitno_buffer *buf, const char *ptr); void gitno_consume_n(gitno_buffer *buf, unsigned int cons); int gitno_connect(const char *host, const char *port); |
