diff options
author | Vicent Martà <tanoku@gmail.com> | 2012-04-23 17:28:11 -0700 |
---|---|---|
committer | Vicent Martà <tanoku@gmail.com> | 2012-04-23 17:28:11 -0700 |
commit | f9f2344bd4ba6c81a96959509ba59f8563b60265 (patch) | |
tree | bb429dc1d066d433ab39076d3369cde56a48bc83 /src/pkt.h | |
parent | 4795807ad5b4827ff4bdb801641ce8a4d5a8557e (diff) | |
parent | 26515e73a11b6f6c25e316ece2a6243aba7af9f5 (diff) | |
download | libgit2-f9f2344bd4ba6c81a96959509ba59f8563b60265.tar.gz |
Merge pull request #632 from arrbee/win64-cleanup
Code clean up, including fixing warnings on Windows 64-bit build
Diffstat (limited to 'src/pkt.h')
-rw-r--r-- | src/pkt.h | 9 |
1 files changed, 5 insertions, 4 deletions
@@ -11,6 +11,7 @@ #include "common.h" #include "transport.h" #include "buffer.h" +#include "posix.h" #include "git2/net.h" enum git_pkt_type { @@ -65,13 +66,13 @@ typedef struct { int git_pkt_parse_line(git_pkt **head, const char *line, const char **out, size_t len); int git_pkt_buffer_flush(git_buf *buf); -int git_pkt_send_flush(int s); +int git_pkt_send_flush(GIT_SOCKET s); int git_pkt_buffer_done(git_buf *buf); -int git_pkt_send_done(int s); +int git_pkt_send_done(GIT_SOCKET s); int git_pkt_buffer_wants(const git_vector *refs, git_transport_caps *caps, git_buf *buf); -int git_pkt_send_wants(const git_vector *refs, git_transport_caps *caps, int fd); +int git_pkt_send_wants(const git_vector *refs, git_transport_caps *caps, GIT_SOCKET fd); int git_pkt_buffer_have(git_oid *oid, git_buf *buf); -int git_pkt_send_have(git_oid *oid, int fd); +int git_pkt_send_have(git_oid *oid, GIT_SOCKET fd); void git_pkt_free(git_pkt *pkt); #endif |