Some OpenBSD cleaning:

- decrease stack usage when retrieving memory stats
- use consistent warnings when failing sysctl(3) calls

https://bugzilla.gnome.org/show_bug.cgi?id=654344
This commit is contained in:
Jasper Lievisse Adriaanse
2011-07-10 17:23:39 +02:00
parent 0de702b142
commit 32833323d9
3 changed files with 20 additions and 24 deletions

View File

@@ -1,4 +1,4 @@
/* $OpenBSD: swap.c,v 1.6 2011/05/25 10:44:34 jasper Exp $ */
/* $OpenBSD: swap.c,v 1.7 2011/07/10 15:23:01 jasper Exp $ */
/* Copyright (C) 1998-99 Martin Baulig
This file is part of LibGTop 1.0.
@@ -79,7 +79,7 @@ glibtop_get_swap_p (glibtop *server, glibtop_swap *buf)
length_uvmexp = sizeof (uvmexp);
if (sysctl (mib_uvmexp, 2, &uvmexp, &length_uvmexp, NULL, 0)) {
glibtop_warn_io_r (server, "sysctl (uvmexp)");
glibtop_warn_io_r (server, "sysctl (vm.uvmexp)");
return;
}