diff options
-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; |