]> mj.ucw.cz Git - libucw.git/commitdiff
identify_protocol -> url_identify_protocol
authorPavel Charvat <pchar@ucw.cz>
Thu, 30 Oct 2008 09:14:30 +0000 (10:14 +0100)
committerPavel Charvat <pchar@ucw.cz>
Thu, 30 Oct 2008 09:14:30 +0000 (10:14 +0100)
ucw/url.c
ucw/url.h

index 7145af5f764e80b9b9ed60cd223743a76093b008..c05bae66dfa5d302ecce8977cea96879268e804b 100644 (file)
--- 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)
     {
index aee20715d3c2a7a6f6aae8c9bc6b52bfeaba401e..d2689be536d8bd4b272bded3b756d1e2b93a0333 100644 (file)
--- 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)