diff options
author | Junio C Hamano <junkio@cox.net> | 2006-04-11 11:52:36 -0700 |
---|---|---|
committer | Junio C Hamano <junkio@cox.net> | 2006-04-11 11:52:36 -0700 |
commit | b5b1442ac35706ce1e3daed407dd935f0e9dd796 (patch) | |
tree | 4f4ea4fe22a43ab2105c2fbb2648519c3ef5f278 /http-push.c | |
parent | 55275b3812af3fe84516f176e589100232aef4f5 (diff) | |
parent | ef9e58c826a4fcaa13457cd8177518163f82972a (diff) | |
download | git-b5b1442ac35706ce1e3daed407dd935f0e9dd796.tar.gz |
Merge branch 'ds/index' into next
* ds/index:
Replace index() with strchr().
Solaris 9 also wants our own unsetenv/setenv.
Retire git-log.sh (take #3)
Diffstat (limited to 'http-push.c')
-rw-r--r-- | http-push.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/http-push.c b/http-push.c index 57cefdea53..994ee90035 100644 --- a/http-push.c +++ b/http-push.c @@ -1211,7 +1211,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 +1240,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 +2350,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); } |