summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorToMe25 <ToMe25@gmx.de>2021-04-19 02:50:48 +0200
committerToMe25 <ToMe25@gmx.de>2021-04-19 02:50:48 +0200
commitfd162f9cb845d0c9533db261c6c6f1d88d1ce012 (patch)
treefcfe5fe6c51963b798c0dca1b788ce6adb64b170
parentb8a0475a421453fe3d53a0da733cdaa7a04370c3 (diff)
downloadlibgtop-fd162f9cb845d0c9533db261c6c6f1d88d1ce012.tar.gz
Fix kvm_open issue
-rw-r--r--sysdeps/openbsd/procmap.c2
-rw-r--r--sysdeps/openbsd/suid_open.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/sysdeps/openbsd/procmap.c b/sysdeps/openbsd/procmap.c
index b2e4f89a..7729f31a 100644
--- a/sysdeps/openbsd/procmap.c
+++ b/sysdeps/openbsd/procmap.c
@@ -61,7 +61,7 @@ static const unsigned long _glibtop_sysdeps_map_entry =
/*
* Don't implement address comparison.
*/
-static int __inline
+static __inline int
no_impl(const void *p, const void *q)
{
abort(); /* Should not be called. */
diff --git a/sysdeps/openbsd/suid_open.c b/sysdeps/openbsd/suid_open.c
index b6b202f6..a25586b1 100644
--- a/sysdeps/openbsd/suid_open.c
+++ b/sysdeps/openbsd/suid_open.c
@@ -69,7 +69,7 @@ glibtop_open_p (glibtop *server, const char *program_name,
server->machine->gid = getgid ();
server->machine->egid = getegid ();
/* Setup machine-specific data */
- server->machine->kd = kvm_openfiles (NULL, NULL, NULL, O_RDONLY, errbuf);
+ server->machine->kd = kvm_openfiles (NULL, NULL, NULL, KVM_NO_FILES, errbuf);
if (server->machine->kd == NULL)
glibtop_error_io_r (server, "kvm_open");