[monitoring-plugins] fix include order error

Lorenz Kästle git at monitoring-plugins.org
Sun Nov 16 15:50:12 CET 2025


 Module: monitoring-plugins
 Branch: master
 Commit: 5ced56b268ed9a8f06755c89615aac68618557ae
 Author: Lorenz Kästle <12514511+RincewindsHat at users.noreply.github.com>
   Date: Sun Nov 16 15:26:00 2025 +0100
    URL: https://www.monitoring-plugins.org/repositories/monitoring-plugins/commit/?id=5ced56b2

fix include order error

---

 lib/utils_cmd.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/lib/utils_cmd.c b/lib/utils_cmd.c
index a0213f6b..42c81793 100644
--- a/lib/utils_cmd.c
+++ b/lib/utils_cmd.c
@@ -36,7 +36,6 @@
  *
  *****************************************************************************/
 
-#include <stddef.h>
 #define NAGIOSPLUG_API_C 1
 
 /** includes **/
@@ -57,6 +56,7 @@ static pid_t *_cmd_pids = NULL;
 #include "./maxfd.h"
 
 #include <fcntl.h>
+#include <stddef.h>
 
 #ifdef HAVE_SYS_WAIT_H
 #	include <sys/wait.h>
@@ -601,6 +601,7 @@ cmd_run_result cmd_run_array2(char *const *cmd, int flags) {
 	if (cmd_open_result.error_code != 0) {
 		// result.error_code = -1;
 		// return result;
+		// TODO properly handle this without dying
 		die(STATE_UNKNOWN, _("Could not open pipe: %s\n"), cmd[0]);
 	}
 



More information about the Commits mailing list