aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--dbfp.c8
1 files changed, 3 insertions, 5 deletions
diff --git a/dbfp.c b/dbfp.c
index d1fd29c..807ba19 100644
--- a/dbfp.c
+++ b/dbfp.c
@@ -37,8 +37,7 @@ static int dbfp_parse(void *contents, size_t len, size_t n, void *data);
static int dbfp_request(struct dbfp *dbfp, char *service, char *query,
XML_Parser parser, struct parse_data *pd);
static int dbfp_url(struct dbfp *dbfp, char *service, char *query, char **url);
-static int dbfp_format_url(struct dbfp *dbfp, char **out, const char *format,
- ...);
+static int dbfp_format_url(char **out, const char *format, ...);
static int check_ele_error(const char *name, const char **atts);
static int read_string(const char **atts, size_t idx, void *value);
@@ -130,7 +129,7 @@ int dbfp_query_location_name(struct dbfp *dbfp, char *input,
err = DBFP_ERROR_CURL;
goto cleanup;
}
- err = dbfp_format_url(dbfp, &query, "input=%s", input_enc);
+ err = dbfp_format_url(&query, "input=%s", input_enc);
if (err)
goto cleanup;
@@ -230,8 +229,7 @@ static int dbfp_url(struct dbfp *dbfp, char *service, char *query, char **url)
return 0;
}
-static int dbfp_format_url(struct dbfp *dbfp, char **out, const char *format,
- ...)
+static int dbfp_format_url(char **out, const char *format, ...)
{
va_list args;
int len;