X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=http-push.c;h=19a0f772e7bf729755c66ab38f5dfb64ae784f00;hb=dfdcb558ecf93c0e09b8dab89cff4839e8c95e36;hp=57cefdea530171c71c72229a85aa0212dedb2c5a;hpb=3381c790e5ca04326d26e1dd9ff482961c6e425b;p=git.git diff --git a/http-push.c b/http-push.c index 57cefdea..19a0f772 100644 --- a/http-push.c +++ b/http-push.c @@ -6,6 +6,7 @@ #include "blob.h" #include "http.h" #include "refs.h" +#include "diff.h" #include "revision.h" #include "exec_cmd.h" @@ -1211,7 +1212,7 @@ static void xml_start_tag(void *userData, const char *name, const char **atts) { struct xml_ctx *ctx = (struct xml_ctx *)userData; - const char *c = index(name, ':'); + const char *c = strchr(name, ':'); int new_len; if (c == NULL) @@ -1240,7 +1241,7 @@ static void xml_end_tag(void *userData, const char *name) { struct xml_ctx *ctx = (struct xml_ctx *)userData; - const char *c = index(name, ':'); + const char *c = strchr(name, ':'); char *ep; ctx->userFunc(ctx, 1); @@ -2350,7 +2351,7 @@ int main(int argc, char **argv) char *path = strstr(arg, "//"); remote->url = arg; if (path) { - path = index(path+2, '/'); + path = strchr(path+2, '/'); if (path) remote->path_len = strlen(path); }