compute_user_summary does not need any private data.
authorAndre Noll <maan@systemlinux.org>
Sun, 9 Nov 2008 15:13:38 +0000 (16:13 +0100)
committerAndre Noll <maan@systemlinux.org>
Sun, 9 Nov 2008 15:13:38 +0000 (16:13 +0100)
Consequently, pass a NULL pointer rather than a pointer to struct
format_info which is not used anyway.

select.c

index f200953..fd25da4 100644 (file)
--- a/select.c
+++ b/select.c
@@ -408,7 +408,7 @@ static int print_user_summary(struct format_info *fi)
                if (ret < 0)
                        return ret;
        }
-       ret = for_each_admissible_user(compute_user_summary, fi);
+       ret = for_each_admissible_user(compute_user_summary, NULL);
        if (ret < 0)
                return ret;
        switch (select_conf.user_summary_sort_arg) {