aboutsummaryrefslogtreecommitdiff
path: root/src/url.c
diff options
context:
space:
mode:
authorjcid <devnull@localhost>2007-11-17 14:47:41 +0100
committerjcid <devnull@localhost>2007-11-17 14:47:41 +0100
commitdfd741a2a60c8013cf96666bb9f24408b863790e (patch)
tree3cd8aac285423bec9f37daaef318b0544b1211be /src/url.c
parent1a09cec70152b4836a20cd8a0d914f62b290fae2 (diff)
- s/camp/field/ s/CAMP/FIELD/
Diffstat (limited to 'src/url.c')
-rw-r--r--src/url.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/url.c b/src/url.c
index 1dab39c3..c21a458a 100644
--- a/src/url.c
+++ b/src/url.c
@@ -56,7 +56,7 @@
/*
* Return the url as a string.
- * (initializing 'url_string' camp if necessary)
+ * (initializing 'url_string' field if necessary)
*/
char *a_Url_str(const DilloUrl *u)
{
@@ -87,7 +87,7 @@ char *a_Url_str(const DilloUrl *u)
/*
* Return the hostname as a string.
- * (initializing 'hostname' and 'port' camps if necessary)
+ * (initializing 'hostname' and 'port' fields if necessary)
* Note: a similar approach can be taken for user:password auth.
*/
const char *a_Url_hostname(const DilloUrl *u)
@@ -440,13 +440,13 @@ int a_Url_cmp(const DilloUrl *A, const DilloUrl *B)
dReturn_val_if_fail(A && B, 1);
if (A == B ||
- ((st = URL_STRCAMP_I_CMP(A->authority, B->authority)) == 0 &&
+ ((st = URL_STR_FIELD_I_CMP(A->authority, B->authority)) == 0 &&
(st = strcmp(A->path ? A->path + (*A->path == '/') : "",
B->path ? B->path + (*B->path == '/') : "")) == 0 &&
- //(st = URL_STRCAMP_CMP(A->path, B->path)) == 0 &&
- (st = URL_STRCAMP_CMP(A->query, B->query)) == 0 &&
- (st = URL_STRCAMP_CMP(A->data, B->data)) == 0 &&
- (st = URL_STRCAMP_I_CMP(A->scheme, B->scheme) == 0)))
+ //(st = URL_STR_FIELD_CMP(A->path, B->path)) == 0 &&
+ (st = URL_STR_FIELD_CMP(A->query, B->query)) == 0 &&
+ (st = URL_STR_FIELD_CMP(A->data, B->data)) == 0 &&
+ (st = URL_STR_FIELD_I_CMP(A->scheme, B->scheme) == 0)))
return 0;
return st;
}