aboutsummaryrefslogtreecommitdiff
path: root/dbfp.c
diff options
context:
space:
mode:
authorRobin Krahl <me@robin-krahl.de>2016-06-01 21:54:14 +0200
committerRobin Krahl <me@robin-krahl.de>2016-06-01 21:54:14 +0200
commit3e0a3f7da39fdbbd2565f28c04c54fb5b51773b4 (patch)
tree7901715fd0af5f47764e5cfbceb7a45e4c1cc74f /dbfp.c
parent2c1fe44e10b64ed402412c22e1f920833fe34e43 (diff)
downloaddbfp-3e0a3f7da39fdbbd2565f28c04c54fb5b51773b4.tar.gz
dbfp-3e0a3f7da39fdbbd2565f28c04c54fb5b51773b4.tar.bz2
dbfp: remove unnecessary argument from dbfp_format_url
Diffstat (limited to 'dbfp.c')
-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;