From 332dec49a16b44389e66f3cbc7e0f08f98657ad8 Mon Sep 17 00:00:00 2001 From: Pavel Charvat Date: Thu, 30 Oct 2008 10:14:30 +0100 Subject: [PATCH] identify_protocol -> url_identify_protocol --- ucw/url.c | 6 +++--- ucw/url.h | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/ucw/url.c b/ucw/url.c index 7145af5f..c05bae66 100644 --- a/ucw/url.c +++ b/ucw/url.c @@ -184,7 +184,7 @@ char *url_proto_names[URL_PROTO_MAX] = URL_PNAMES; static int url_proto_path_flags[URL_PROTO_MAX] = URL_PATH_FLAGS; uns -identify_protocol(const char *p) +url_identify_protocol(const char *p) { uns i; @@ -212,7 +212,7 @@ url_split(char *s, struct url *u, char *d) while (s < p) *d++ = *s++; *d++ = 0; - u->protoid = identify_protocol(u->protocol); + u->protoid = url_identify_protocol(u->protocol); s++; if (url_proto_path_flags[u->protoid] && (s[0] != '/' || s[1] != '/')) { @@ -512,7 +512,7 @@ url_pack(struct url *u, char *d) { d = append(d, u->protocol, e); d = append(d, ":", e); - u->protoid = identify_protocol(u->protocol); + u->protoid = url_identify_protocol(u->protocol); } if (u->host) { diff --git a/ucw/url.h b/ucw/url.h index aee20715..d2689be5 100644 --- a/ucw/url.h +++ b/ucw/url.h @@ -59,7 +59,7 @@ int url_canonicalize(struct url *u); int url_pack(struct url *u, char *d); int url_canon_split_rel(const char *url, char *buf1, char *buf2, struct url *u, struct url *base); int url_auto_canonicalize_rel(const char *src, char *dst, struct url *base); -uns identify_protocol(const char *p); +uns url_identify_protocol(const char *p); int url_has_repeated_component(const char *url); static inline int url_canon_split(const char *url, char *buf1, char *buf2, struct url *u) -- 2.39.5