From: Julian Phillips Date: Fri, 25 Jun 2010 23:41:33 +0000 (+0100) Subject: string_list: Fix argument order for print_string_list X-Git-Tag: v1.7.2-rc1~8^2~5 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=cb944f6b5009e4788041a5194d73b92a0620c9d9;p=git.git string_list: Fix argument order for print_string_list Update the definition and callers of print_string_list to use the string_list as the first argument. This helps make the API easier to use by being more consistent. Signed-off-by: Julian Phillips Signed-off-by: Junio C Hamano --- diff --git a/string-list.c b/string-list.c index c9ad7fcd4..b7e57a407 100644 --- a/string-list.c +++ b/string-list.c @@ -139,7 +139,7 @@ void string_list_clear_func(struct string_list *list, string_list_clear_func_t c } -void print_string_list(const char *text, const struct string_list *p) +void print_string_list(const struct string_list *p, const char *text) { int i; if ( text ) diff --git a/string-list.h b/string-list.h index 63b69c8d7..de29dcd96 100644 --- a/string-list.h +++ b/string-list.h @@ -12,7 +12,7 @@ struct string_list unsigned int strdup_strings:1; }; -void print_string_list(const char *text, const struct string_list *p); +void print_string_list(const struct string_list *p, const char *text); void string_list_clear(struct string_list *list, int free_util); /* Use this function to call a custom clear function on each util pointer */