X-Git-Url: https://git.verplant.org/?a=blobdiff_plain;f=http-push.c;h=ad789829c1c33e00cbcc9e1e1564e645755d49ab;hb=e9a45d75b5eccfc288c4533b5e34af1f77dd32c9;hp=f3c92c971e65e9df72fafdab52b4935866a0a794;hpb=7b8999674955b9d6b58de2b8f71b2e2ede795f65;p=git.git diff --git a/http-push.c b/http-push.c index f3c92c97..ad789829 100644 --- a/http-push.c +++ b/http-push.c @@ -6,8 +6,6 @@ #include "blob.h" #include "http.h" -#ifdef USE_CURL_MULTI - #include static const char http_push_usage[] = @@ -786,7 +784,7 @@ static void handle_new_lock_ctx(struct xml_ctx *ctx, int tag_closed) strtol(ctx->cdata + 7, NULL, 10); } else if (!strcmp(ctx->name, DAV_ACTIVELOCK_TOKEN)) { if (!strncmp(ctx->cdata, "opaquelocktoken:", 16)) { - lock->token = xmalloc(strlen(ctx->cdata - 15)); + lock->token = xmalloc(strlen(ctx->cdata) - 15); strcpy(lock->token, ctx->cdata + 16); } } @@ -1426,10 +1424,3 @@ int main(int argc, char **argv) return rc; } -#else /* ifdef USE_CURL_MULTI */ -int main(int argc, char **argv) -{ - fprintf(stderr, "http-push requires curl 7.9.8 or higher.\n"); - return 1; -} -#endif