diff options
author | Vicent Marti <tanoku@gmail.com> | 2011-08-30 21:44:09 +0400 |
---|---|---|
committer | Vicent Marti <tanoku@gmail.com> | 2011-08-30 21:44:09 +0400 |
commit | 0bd594b61c20f23c6ff32893ed5b096a1d663ab5 (patch) | |
tree | 659bc8716a3a0f9022d97a25d2c3590f9ff94611 /src/netops.h | |
parent | 778e1c739b1c9e06d5b3e3d5c965f4a63d40881f (diff) |
netops: Use the size_t, Luke
Diffstat (limited to 'src/netops.h')
-rw-r--r-- | src/netops.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/netops.h b/src/netops.h index d18116f34..a1460743d 100644 --- a/src/netops.h +++ b/src/netops.h @@ -12,18 +12,18 @@ typedef unsigned int GIT_SOCKET; typedef struct gitno_buffer { char *data; - unsigned int len; - unsigned int offset; + size_t len; + size_t offset; GIT_SOCKET fd; } gitno_buffer; 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, const char *ptr); -void gitno_consume_n(gitno_buffer *buf, unsigned int cons); +void gitno_consume_n(gitno_buffer *buf, size_t cons); int gitno_connect(const char *host, const char *port); -int gitno_send(int s, const char *msg, int len, int flags); +int gitno_send(int s, const char *msg, size_t len, int flags); int gitno_select_in(gitno_buffer *buf, long int sec, long int usec); #endif |