diff options
author | Julian Phillips <julian@quantumfyre.co.uk> | 2010-06-26 00:41:34 +0100 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2010-06-27 10:06:51 -0700 |
commit | b684e977363ee5cb53d83c69f2298d7898c5f89a (patch) | |
tree | b5f70daef883213e3f69643113601cc07e872083 /string-list.c | |
parent | cb944f6b5009e4788041a5194d73b92a0620c9d9 (diff) | |
download | git-b684e977363ee5cb53d83c69f2298d7898c5f89a.tar.gz |
string_list: Fix argument order for for_each_string_list
Update the definition and callers of for_each_string_list to use the
string_list as the first argument. This helps make the string_list
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>
Diffstat (limited to 'string-list.c')
-rw-r--r-- | string-list.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/string-list.c b/string-list.c index b7e57a407c..09798a2dc8 100644 --- a/string-list.c +++ b/string-list.c @@ -92,8 +92,8 @@ struct string_list_item *string_list_lookup(const char *string, struct string_li return list->items + i; } -int for_each_string_list(string_list_each_func_t fn, - struct string_list *list, void *cb_data) +int for_each_string_list(struct string_list *list, + string_list_each_func_t fn, void *cb_data) { int i, ret = 0; for (i = 0; i < list->nr; i++) |