[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[hurd] 01/43: procfs: Remove superfluous calls.
From: |
Samuel Thibault |
Subject: |
[hurd] 01/43: procfs: Remove superfluous calls. |
Date: |
Mon, 11 Sep 2017 07:10:08 +0000 |
This is an automated email from the git hooks/post-receive script.
sthibault pushed a commit to branch upstream
in repository hurd.
commit ce6764db1e045421fc9a199a334f63318d9f79d2
Author: Justus Winter <address@hidden>
Date: Sat Jun 3 01:28:37 2017 +0200
procfs: Remove superfluous calls.
* procfs/rootdir.c (rootdir_gc_vmstat): Remove superfluous 'host_info'
calls.
---
procfs/rootdir.c | 8 --------
1 file changed, 8 deletions(-)
diff --git a/procfs/rootdir.c b/procfs/rootdir.c
index 4f4a142..50923f5 100644
--- a/procfs/rootdir.c
+++ b/procfs/rootdir.c
@@ -339,8 +339,6 @@ rootdir_gc_meminfo (void *hook, char **contents, ssize_t
*contents_len)
static error_t
rootdir_gc_vmstat (void *hook, char **contents, ssize_t *contents_len)
{
- host_basic_info_data_t hbi;
- mach_msg_type_number_t cnt;
struct vm_statistics vmstats;
error_t err;
@@ -348,12 +346,6 @@ rootdir_gc_vmstat (void *hook, char **contents, ssize_t
*contents_len)
if (err)
return EIO;
- cnt = HOST_BASIC_INFO_COUNT;
- err = host_info (mach_host_self (), HOST_BASIC_INFO, (host_info_t) &hbi,
&cnt);
- if (err)
- return err;
-
- assert (cnt == HOST_BASIC_INFO_COUNT);
*contents_len = asprintf (contents,
"nr_free_pages %lu\n"
"nr_inactive_anon %lu\n"
--
Alioth's /usr/local/bin/git-commit-notice on
/srv/git.debian.org/git/pkg-hurd/hurd.git
- [hurd] branch upstream updated (cb991b0 -> 796f878), Samuel Thibault, 2017/09/11
- [hurd] 04/43: hurd: Fix the use of polymorphic types., Samuel Thibault, 2017/09/11
- [hurd] 07/43: Fix taking into account prefix for xkb-data installation, Samuel Thibault, 2017/09/11
- [hurd] 06/43: trans: Fix parallel build race around MIG-generated headers, Samuel Thibault, 2017/09/11
- [hurd] 09/43: libshouldbeinlibc: Add missing include., Samuel Thibault, 2017/09/11
- [hurd] 05/43: ext2fs: Reduce verbosity of missing xattr support on the FS, Samuel Thibault, 2017/09/11
- [hurd] 11/43: build: Drop unused/unsubstituted config variables, Samuel Thibault, 2017/09/11
- [hurd] 10/43: Revert "Fix taking into account prefix for xkb-data installation", Samuel Thibault, 2017/09/11
- [hurd] 19/43: libdiskfs: Make mapping the time device more robust., Samuel Thibault, 2017/09/11
- [hurd] 01/43: procfs: Remove superfluous calls.,
Samuel Thibault <=
- [hurd] 13/43: Fix harmless indentation errors tripping [-Wmisleading-indentation]., Samuel Thibault, 2017/09/11
- [hurd] 22/43: libshouldbeinlibc: Fix wiring code., Samuel Thibault, 2017/09/11
- [hurd] 27/43: eth-multiplexer: Generalize function and improve error handling., Samuel Thibault, 2017/09/11
- [hurd] 32/43: eth-multiplexer: Fix type check., Samuel Thibault, 2017/09/11
- [hurd] 38/43: trans/mtab: Fix warnings., Samuel Thibault, 2017/09/11
- [hurd] 41/43: exec: Avoid calling mmap with zero size, Samuel Thibault, 2017/09/11
- [hurd] 24/43: eth-multiplexer: Fix error handling., Samuel Thibault, 2017/09/11
- [hurd] 12/43: Fix typo., Samuel Thibault, 2017/09/11
- [hurd] 21/43: startup: Fix retrieving the privileged ports., Samuel Thibault, 2017/09/11
- [hurd] 25/43: eth-multiplexer: Implement getting the devices flags., Samuel Thibault, 2017/09/11