summaryrefslogtreecommitdiff
path: root/rest/rest-proxy.c
diff options
context:
space:
mode:
authorRoss Burton <ross@burtonini.com>2008-09-04 14:36:20 +0100
committerRob Bradford <rob@linux.intel.com>2008-09-04 16:17:23 +0100
commitaf22c26d69e062a181f87e00f7170f07f007868a (patch)
tree4eebfea99a6fed5bae7b2b01c6a5f9eddb210fda /rest/rest-proxy.c
parentb3ec373a6f74f048f7886bfe9465a3ef2f712c8e (diff)
downloadlibrest-af22c26d69e062a181f87e00f7170f07f007868a.tar.gz
Make rest_proxy_bind by fixing the sanity check and fixing the va_args use
Diffstat (limited to 'rest/rest-proxy.c')
-rw-r--r--rest/rest-proxy.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/rest/rest-proxy.c b/rest/rest-proxy.c
index 39c68da..b96f352 100644
--- a/rest/rest-proxy.c
+++ b/rest/rest-proxy.c
@@ -147,18 +147,17 @@ rest_proxy_new (const gchar *url_format,
}
gboolean
-rest_proxy_bind (RestProxy *proxy,
- const gchar *first_param, ...)
+rest_proxy_bind (RestProxy *proxy, ...)
{
RestProxyPrivate *priv = GET_PRIVATE (proxy);
va_list params;
g_return_val_if_fail (proxy != NULL, FALSE);
g_return_val_if_fail (priv->url_format != NULL, FALSE);
- g_return_val_if_fail (priv->binding_required != TRUE, FALSE);
+ g_return_val_if_fail (priv->binding_required == TRUE, FALSE);
g_free (priv->url);
- va_start (params, first_param);
+ va_start (params, proxy);
priv->url = g_strdup_vprintf (priv->url_format, params);
va_end (params);