summaryrefslogtreecommitdiff
path: root/http-backend.c
diff options
context:
space:
mode:
authorLibravatar Junio C Hamano <gitster@pobox.com>2010-06-30 11:55:38 -0700
committerLibravatar Junio C Hamano <gitster@pobox.com>2010-06-30 11:55:38 -0700
commita53deac89eb6c65cd953c730f33b86ac3f72d647 (patch)
tree69394607c1f6b8a0c5c53207a747fe31d79f0c79 /http-backend.c
parentMerge branch 'tr/rev-list-count' (diff)
parentstring_list: Fix argument order for string_list_append (diff)
downloadtgif-a53deac89eb6c65cd953c730f33b86ac3f72d647.tar.xz
Merge branch 'jp/string-list-api-cleanup'
* jp/string-list-api-cleanup: string_list: Fix argument order for string_list_append string_list: Fix argument order for string_list_lookup string_list: Fix argument order for string_list_insert_at_index string_list: Fix argument order for string_list_insert string_list: Fix argument order for for_each_string_list string_list: Fix argument order for print_string_list
Diffstat (limited to 'http-backend.c')
-rw-r--r--http-backend.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/http-backend.c b/http-backend.c
index 44ce6bb32b..14c90c2e84 100644
--- a/http-backend.c
+++ b/http-backend.c
@@ -37,9 +37,9 @@ static struct string_list *get_parameters(void)
char *value = url_decode_parameter_value(&query);
struct string_list_item *i;
- i = string_list_lookup(name, query_params);
+ i = string_list_lookup(query_params, name);
if (!i)
- i = string_list_insert(name, query_params);
+ i = string_list_insert(query_params, name);
else
free(i->util);
i->util = value;
@@ -51,7 +51,7 @@ static struct string_list *get_parameters(void)
static const char *get_parameter(const char *name)
{
struct string_list_item *i;
- i = string_list_lookup(name, get_parameters());
+ i = string_list_lookup(get_parameters(), name);
return i ? i->util : NULL;
}