summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRoss Burton <ross@linux.intel.com>2008-09-19 17:09:11 +0100
committerRoss Burton <ross@linux.intel.com>2008-09-19 17:09:11 +0100
commite99fa32b64c59ea34b3d9de2ae007e2cd7113e11 (patch)
tree460352fb4bddfffadca959e3f2786c7d7f2d29c3
parent69ef8852dc164e00863e33694056a2dc9d37145c (diff)
Fix prototype of rest_proxy_call_add_headers
-rw-r--r--rest/rest-proxy-call.c3
-rw-r--r--rest/rest-proxy-call.h1
2 files changed, 1 insertions, 3 deletions
diff --git a/rest/rest-proxy-call.c b/rest/rest-proxy-call.c
index 790cbd1..a4971e4 100644
--- a/rest/rest-proxy-call.c
+++ b/rest/rest-proxy-call.c
@@ -220,12 +220,11 @@ rest_proxy_call_add_header (RestProxyCall *call,
*/
void
rest_proxy_call_add_headers (RestProxyCall *call,
- const char *first_header_name,
...)
{
va_list headers;
- va_start (headers, first_header_name);
+ va_start (headers, call);
rest_proxy_call_add_headers_from_valist (call, headers);
va_end (headers);
}
diff --git a/rest/rest-proxy-call.h b/rest/rest-proxy-call.h
index 8725b67..c4c0237 100644
--- a/rest/rest-proxy-call.h
+++ b/rest/rest-proxy-call.h
@@ -57,7 +57,6 @@ void rest_proxy_call_add_header (RestProxyCall *call,
G_GNUC_NULL_TERMINATED
void rest_proxy_call_add_headers (RestProxyCall *call,
- const char *first_header_name,
...);
void rest_proxy_call_add_headers_from_valist (RestProxyCall *call,