Skip to content

Commit

Permalink
string_list: Fix argument order for print_string_list
Browse files Browse the repository at this point in the history
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 <julian@quantumfyre.co.uk>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
  • Loading branch information
Julian Phillips authored and Junio C Hamano committed Jun 27, 2010
1 parent 7c42e39 commit cb944f6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion string-list.c
Original file line number Diff line number Diff line change
Expand Up @@ -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 )
Expand Down
2 changes: 1 addition & 1 deletion string-list.h
Original file line number Diff line number Diff line change
Expand Up @@ -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 */
Expand Down

0 comments on commit cb944f6

Please sign in to comment.