[Nagios-checkins] SF.net SVN: nagios:[2103] nagioscore/trunk/include/objects.h

ageric at users.sourceforge.net ageric at users.sourceforge.net
Sun Aug 26 20:05:44 UTC 2012


Revision: 2103
          http://nagios.svn.sourceforge.net/nagios/?rev=2103&view=rev
Author:   ageric
Date:     2012-08-26 20:05:43 +0000 (Sun, 26 Aug 2012)
Log Message:
-----------
Remove useless 'nexthash' pointer from common objects

We moved to proper container classes when skiplists were implemented,
so using in-object pointers in container classes is just wrong.

Signed-off-by: Andreas Ericsson <ae at op5.se>

Modified Paths:
--------------
    nagioscore/trunk/include/objects.h

Modified: nagioscore/trunk/include/objects.h
===================================================================
--- nagioscore/trunk/include/objects.h	2012-08-26 20:05:20 UTC (rev 2102)
+++ nagioscore/trunk/include/objects.h	2012-08-26 20:05:43 UTC (rev 2103)
@@ -118,7 +118,6 @@
 	daterange *exceptions[DATERANGE_TYPES];
 	timeperiodexclusion *exclusions;
 	struct 	timeperiod_struct *next;
-	struct 	timeperiod_struct *nexthash;
 	} timeperiod;
 
 
@@ -139,7 +138,6 @@
 	char    *alias;
 	contactsmember *members;
 	struct	contactgroup_struct *next;
-	struct	contactgroup_struct *nexthash;
 	} contactgroup;
 
 
@@ -168,7 +166,6 @@
 	char    *name;
 	char    *command_line;
 	struct command_struct *next;
-	struct command_struct *nexthash;
 	} command;
 
 
@@ -223,7 +220,6 @@
 	objectlist *contactgroups_ptr;
 #endif
 	struct	contact_struct *next;
-	struct	contact_struct *nexthash;
 	};
 
 
@@ -258,7 +254,6 @@
 	char    *notes_url;
 	char    *action_url;
 	struct	hostgroup_struct *next;
-	struct	hostgroup_struct *nexthash;
 	} hostgroup;
 
 
@@ -399,7 +394,6 @@
 	char    *notes_url;
 	char    *action_url;
 	struct	servicegroup_struct *next;
-	struct	servicegroup_struct *nexthash;
 	} servicegroup;
 
 
@@ -543,7 +537,6 @@
 	timeperiod *escalation_period_ptr;
 #endif
 	struct  serviceescalation_struct *next;
-	struct  serviceescalation_struct *nexthash;
 	} serviceescalation;
 
 
@@ -568,7 +561,6 @@
 	timeperiod *dependency_period_ptr;
 #endif
 	struct servicedependency_struct *next;
-	struct servicedependency_struct *nexthash;
 	} servicedependency;
 
 
@@ -590,7 +582,6 @@
 	timeperiod *escalation_period_ptr;
 #endif
 	struct  hostescalation_struct *next;
-	struct  hostescalation_struct *nexthash;
 	} hostescalation;
 
 
@@ -612,7 +603,6 @@
 	timeperiod *dependency_period_ptr;
 #endif
 	struct hostdependency_struct *next;
-	struct hostdependency_struct *nexthash;
 	} hostdependency;
 
 

This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.





More information about the Nagios-commits mailing list