fix prototype name for ares_strsplit_free()

pull/223/head
Brad House 6 years ago
parent 2244ea7cc6
commit e7c0f1b151
  1. 6
      ares_strsplit.c
  2. 2
      ares_strsplit.h

@ -58,7 +58,7 @@ static int is_delim(char c, const char *delims, size_t num_delims)
} }
void ares_splitstr_free(char **elms, size_t num_elm) void ares_strsplit_free(char **elms, size_t num_elm)
{ {
size_t i; size_t i;
@ -148,7 +148,7 @@ char **ares_strsplit(const char *in, const char *delms, int make_set, size_t *nu
out[nelms] = ares_strdup(temp[i]); out[nelms] = ares_strdup(temp[i]);
if (out[nelms] == NULL) if (out[nelms] == NULL)
{ {
ares_splitstr_free(out, nelms); ares_strsplit_free(out, nelms);
ares_free(parsestr); ares_free(parsestr);
ares_free(temp); ares_free(temp);
return NULL; return NULL;
@ -161,7 +161,7 @@ char **ares_strsplit(const char *in, const char *delms, int make_set, size_t *nu
* array. */ * array. */
if (nelms == 0) if (nelms == 0)
{ {
ares_splitstr_free(out, nelms); ares_strsplit_free(out, nelms);
out = NULL; out = NULL;
} }

@ -36,7 +36,7 @@
char **ares_strsplit(const char *in, const char *delms, int make_set, size_t *num_elm); char **ares_strsplit(const char *in, const char *delms, int make_set, size_t *num_elm);
/* Frees the result returned from ares_strsplit(). */ /* Frees the result returned from ares_strsplit(). */
void ares_splitstr_free(char **elms, size_t num_elm); void ares_strsplit_free(char **elms, size_t num_elm);
#endif /* HEADER_CARES_STRSPLIT_H */ #endif /* HEADER_CARES_STRSPLIT_H */

Loading…
Cancel
Save