From b235bd2724ad4cf9150b0f571ead70fbfa34da84 Mon Sep 17 00:00:00 2001 From: Samuel Thibault Date: Thu, 24 Mar 2016 11:00:14 +0100 Subject: Fix swap information numbers * procfs/rootdir.c (rootdir_gc_swaps): Fix default_pager_storage_info call parameter order. * sutils/swapon.c (main): Likewise. --- procfs/rootdir.c | 2 +- sutils/swapon.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/procfs/rootdir.c b/procfs/rootdir.c index dd693c89..951c071d 100644 --- a/procfs/rootdir.c +++ b/procfs/rootdir.c @@ -548,7 +548,7 @@ rootdir_gc_swaps (void *hook, char **contents, ssize_t *contents_len) goto out_fclose; } - err = default_pager_storage_info (defpager, &free, &nfree, &size, &nsize, + err = default_pager_storage_info (defpager, &size, &nsize, &free, &nfree, &names, &names_len); if (err) goto out; diff --git a/sutils/swapon.c b/sutils/swapon.c index ae830baa..1d0d4353 100644 --- a/sutils/swapon.c +++ b/sutils/swapon.c @@ -571,7 +571,7 @@ main (int argc, char *argv[]) get_def_pager(); - err = default_pager_storage_info (def_pager, &free, &nfree, &size, &nsize, + err = default_pager_storage_info (def_pager, &size, &nsize, &free, &nfree, &names, &names_len); if (err) error (3, 0, "Can not get default pager storage information"); -- cgit v1.2.3