[monitoring-plugins] Include common.h before any system headers.
Jan Wagner
git at monitoring-plugins.org
Sat Jun 28 22:30:08 CEST 2014
Module: monitoring-plugins
Branch: master
Commit: 6e246799b939d29fe80da03ee39a24ef68f78cb0
Author: Eric J. Mislivec <emislivec at nagios.com>
Committer: Jan Wagner <waja at cyconet.org>
Date: Thu Jun 5 16:05:46 2014 -0500
URL: https://www.monitoring-plugins.org/repositories/monitoring-plugins/commit/?id=6e24679
Include common.h before any system headers.
This should fix some problems building on AIX.
---
plugins/check_tcp.c | 3 +--
plugins/negate.c | 4 ++--
2 files changed, 3 insertions(+), 4 deletions(-)
diff --git a/plugins/check_tcp.c b/plugins/check_tcp.c
index 2714961..ebdccd1 100644
--- a/plugins/check_tcp.c
+++ b/plugins/check_tcp.c
@@ -32,13 +32,12 @@ char *progname;
const char *copyright = "1999-2008";
const char *email = "devel at monitoring-plugins.org";
-#include <ctype.h>
-
#include "common.h"
#include "netutils.h"
#include "utils.h"
#include "utils_tcp.h"
+#include <ctype.h>
#include <sys/select.h>
#ifdef HAVE_SSL
diff --git a/plugins/negate.c b/plugins/negate.c
index 4bd09de..222d240 100644
--- a/plugins/negate.c
+++ b/plugins/negate.c
@@ -35,12 +35,12 @@ const char *email = "devel at monitoring-plugins.org";
#define DEFAULT_TIMEOUT 11
-#include <ctype.h>
-
#include "common.h"
#include "utils.h"
#include "utils_cmd.h"
+#include <ctype.h>
+
/* char *command_line; */
static const char **process_arguments (int, char **);
More information about the Commits
mailing list