X-Git-Url: https://git.verplant.org/?a=blobdiff_plain;f=http-pull.c;h=ba8585cfd4fcbe05b62a7ed2f0aa4ddbb625326e;hb=6af1f0192ff8740fe77db7cf02c739ccfbdf119c;hp=024457a9895ab10c4ef18aa6e232d12fdaab4da9;hpb=e78d97723cd77d46d8767a5a27965077249fd080;p=git.git diff --git a/http-pull.c b/http-pull.c index 024457a9..ba8585cf 100644 --- a/http-pull.c +++ b/http-pull.c @@ -1,11 +1,5 @@ -#include -#include -#include -#include #include "cache.h" #include "commit.h" -#include -#include #include "pull.h" @@ -24,7 +18,7 @@ static int zret; static size_t fwrite_sha1_file(void *ptr, size_t eltsize, size_t nmemb, void *data) { - char expn[4096]; + unsigned char expn[4096]; size_t size = eltsize * nmemb; int posn = 0; do { @@ -49,7 +43,7 @@ int fetch(unsigned char *sha1) { char *hex = sha1_to_hex(sha1); char *filename = sha1_file_name(sha1); - char real_sha1[20]; + unsigned char real_sha1[20]; char *url; char *posn;