]> git.tuebingen.mpg.de Git - adu.git/commitdiff
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 f200953266f1bc2eeed3e224c3b4714e09d93fff..fd25da48b48d264a896abd74099fe56375c5d8e6 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) {