diff options
author | Lorenz Kästle <12514511+RincewindsHat@users.noreply.github.com> | 2025-09-26 18:11:47 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-09-26 18:11:47 +0200 |
commit | a516b5e96e1b4dff0867d4ae3329b39d918a5a59 (patch) | |
tree | 8d10668d6ec5b7da2a7a4c4b214a42b1d9cdc612 /plugins | |
parent | 92f37f90c3dda77cfd724a507aaac58526976606 (diff) | |
parent | 5fb0c08cec4122928767e8d58c222865eeeae1d7 (diff) | |
download | monitoring-plugins-coverity/master.tar.gz |
Merge pull request #2157 from sthen/fix_without_utmpxHEADmastercoverity/master
fixes check_users build on OpenBSD (without utmpx)
Diffstat (limited to 'plugins')
-rw-r--r-- | plugins/check_users.c | 2 | ||||
-rw-r--r-- | plugins/check_users.d/users.c | 2 |
2 files changed, 1 insertions, 3 deletions
diff --git a/plugins/check_users.c b/plugins/check_users.c index 2340eae4..3b2e265e 100644 --- a/plugins/check_users.c +++ b/plugins/check_users.c | |||
@@ -51,8 +51,6 @@ const char *email = "devel@monitoring-plugins.org"; | |||
51 | # define ERROR -1 | 51 | # define ERROR -1 |
52 | #elif HAVE_UTMPX_H | 52 | #elif HAVE_UTMPX_H |
53 | # include <utmpx.h> | 53 | # include <utmpx.h> |
54 | #else | ||
55 | # include "popen.h" | ||
56 | #endif | 54 | #endif |
57 | 55 | ||
58 | #ifdef HAVE_LIBSYSTEMD | 56 | #ifdef HAVE_LIBSYSTEMD |
diff --git a/plugins/check_users.d/users.c b/plugins/check_users.d/users.c index f37819b1..a08f79c5 100644 --- a/plugins/check_users.d/users.c +++ b/plugins/check_users.d/users.c | |||
@@ -113,8 +113,8 @@ get_num_of_users_wrapper get_num_of_users_utmp() { | |||
113 | # ifndef HAVE_UTMPX_H | 113 | # ifndef HAVE_UTMPX_H |
114 | // Fall back option here for the others (probably still not on windows) | 114 | // Fall back option here for the others (probably still not on windows) |
115 | 115 | ||
116 | # include "../popen.h" | ||
117 | # include "../common.h" | 116 | # include "../common.h" |
117 | # include "../popen.h" | ||
118 | # include "../utils.h" | 118 | # include "../utils.h" |
119 | 119 | ||
120 | get_num_of_users_wrapper get_num_of_users_who_command() { | 120 | get_num_of_users_wrapper get_num_of_users_who_command() { |