projects
/
git.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Replace index() with strchr().
[git.git]
/
http-push.c
diff --git
a/http-push.c
b/http-push.c
index
57cefde
..
994ee90
100644
(file)
--- 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;
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)
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;
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);
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) {
char *path = strstr(arg, "//");
remote->url = arg;
if (path) {
- path =
index
(path+2, '/');
+ path =
strchr
(path+2, '/');
if (path)
remote->path_len = strlen(path);
}
if (path)
remote->path_len = strlen(path);
}