X-Git-Url: http://pileus.org/git/?a=blobdiff_plain;f=http-push.c;h=d4b40c9c60e8caa2b8f8e676ac18b678b6ca2ed6;hb=53f3478d42d00a34bfb031f41a4a9a3a225d312f;hp=34cb70f90ea14a18848bd270463f5a34dc2c8fd3;hpb=71fe59f880d504d906c4c91c4841bd7c985e8907;p=~andy%2Fgit diff --git a/http-push.c b/http-push.c index 34cb70f90..d4b40c9c6 100644 --- a/http-push.c +++ b/http-push.c @@ -771,7 +771,7 @@ static void handle_new_lock_ctx(struct xml_ctx *ctx, int tag_closed) lock->owner = xmalloc(strlen(ctx->cdata) + 1); strcpy(lock->owner, ctx->cdata); } else if (!strcmp(ctx->name, DAV_ACTIVELOCK_TIMEOUT)) { - if (!prefixcmp(ctx->cdata, "Second-")) + if (starts_with(ctx->cdata, "Second-")) lock->timeout = strtol(ctx->cdata + 7, NULL, 10); } else if (!strcmp(ctx->name, DAV_ACTIVELOCK_TOKEN)) { @@ -1579,7 +1579,7 @@ static void fetch_symref(const char *path, char **symref, unsigned char *sha1) return; /* If it's a symref, set the refname; otherwise try for a sha1 */ - if (!prefixcmp((char *)buffer.buf, "ref: ")) { + if (starts_with((char *)buffer.buf, "ref: ")) { *symref = xmemdupz((char *)buffer.buf + 5, buffer.len - 6); } else { get_sha1_hex(buffer.buf, sha1);