X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=plugins%2Fcommon.h;h=dfc09416453372792334ebb90e8ab9c8dbd8f7a6;hb=b8a64210bd44d792de6defcdddec65231c1ac65b;hp=752e21fffe4ab2a67a5a5eea0750d4883bb74a1c;hpb=d47be7a9e48242a25e356e2509f6fb774ae0be10;p=nagiosplug.git
diff --git a/plugins/common.h b/plugins/common.h
index 752e21f..dfc0941 100644
--- a/plugins/common.h
+++ b/plugins/common.h
@@ -1,47 +1,37 @@
-/******************************************************************************
- *
- * Nagios plugins common include file
- *
- * License: GPL
- * Copyright (c) 1999 Ethan Galstad (nagios@nagios.org)
- *
- * Last Modified: 11-05-1999
- *
- * Description:
- *
- * This file contains common include files and defines used in many of
- * the plugins.
- *
- * License Information:
- *
- * This program is free software; you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation; either version 2 of the License, or
- * (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program; if not, write to the Free Software
- * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
- *
- * $Id$
- *
- *****************************************************************************/
+/*****************************************************************************
+*
+* Nagios plugins common include file
+*
+* License: GPL
+* Copyright (c) 1999 Ethan Galstad (nagios@nagios.org)
+* Copyright (c) 2003-2007 Nagios Plugins Development Team
+*
+* Description:
+*
+* This file contains common include files and defines used in many of
+* the plugins.
+*
+*
+* This program is free software: you can redistribute it and/or modify
+* it under the terms of the GNU General Public License as published by
+* the Free Software Foundation, either version 3 of the License, or
+* (at your option) any later version.
+*
+* This program is distributed in the hope that it will be useful,
+* but WITHOUT ANY WARRANTY; without even the implied warranty of
+* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+* GNU General Public License for more details.
+*
+* You should have received a copy of the GNU General Public License
+* along with this program. If not, see .
+*
+*
+*****************************************************************************/
#ifndef _COMMON_H_
#define _COMMON_H_
#include "config.h"
-/* This needs to be removed for Solaris servers, where 64 bit files, but 32 bit architecture
- This needs to be done early on because subsequent system includes use _FILE_OFFSET_BITS
- Cannot remove from config.h because is included by regex.c from lib/ */
-#if __sun__ && !defined(_LP64) && _FILE_OFFSET_BITS == 64
-#undef _FILE_OFFSET_BITS
-#endif
#ifdef HAVE_FEATURES_H
#include
@@ -118,9 +108,6 @@
/* GNU Libraries */
#include
#include "dirname.h"
-#include "vasprintf.h"
-#include "snprintf.h"
-#include "vsnprintf.h"
#ifdef HAVE_LOCALE_H
#include
@@ -186,11 +173,6 @@ enum {
};
#endif
-/* Solaris does not have floorf, but floor works. Should probably be in configure */
-#if defined(__sun) || defined(__sun__)
-static inline float floorf (float x) { return floor(x); }
-#endif
-
enum {
STATE_OK,
STATE_WARNING,