diff options
author | Robin Krahl <me@robin-krahl.de> | 2016-06-01 21:54:14 +0200 |
---|---|---|
committer | Robin Krahl <me@robin-krahl.de> | 2016-06-01 21:54:14 +0200 |
commit | 3e0a3f7da39fdbbd2565f28c04c54fb5b51773b4 (patch) | |
tree | 7901715fd0af5f47764e5cfbceb7a45e4c1cc74f /dbfp.c | |
parent | 2c1fe44e10b64ed402412c22e1f920833fe34e43 (diff) | |
download | dbfp-3e0a3f7da39fdbbd2565f28c04c54fb5b51773b4.tar.gz dbfp-3e0a3f7da39fdbbd2565f28c04c54fb5b51773b4.tar.bz2 |
dbfp: remove unnecessary argument from dbfp_format_url
Diffstat (limited to 'dbfp.c')
-rw-r--r-- | dbfp.c | 8 |
1 files changed, 3 insertions, 5 deletions
@@ -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; |