Skip to content

Commit

Permalink
Don't declare functions twice
Browse files Browse the repository at this point in the history
  • Loading branch information
roelvanmeer committed Sep 6, 2022
1 parent 5a0a458 commit f37e375
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 6 deletions.
2 changes: 0 additions & 2 deletions src/naemon/commands.c
Original file line number Diff line number Diff line change
Expand Up @@ -77,8 +77,6 @@ static void acknowledge_host_problem(host *, char *, char *, int, int, int, time
static void acknowledge_service_problem(service *, char *, char *, int, int, int, time_t); /* acknowledges a service problem */
static void remove_host_acknowledgement(host *); /* removes a host acknowledgement */
static void remove_service_acknowledgement(service *); /* removes a service acknowledgement */
void handle_host_acknowledgement_expire_event(struct nm_event_execution_properties *evprop); /* removes an expired host acknowledgement */
void handle_service_acknowledgement_expire_event(struct nm_event_execution_properties *evprop); /* removes an expired service acknowledgement */
static void start_executing_service_checks(void); /* starts executing service checks */
static void stop_executing_service_checks(void); /* stops executing service checks */
static void start_accepting_passive_service_checks(void); /* starts accepting passive service check results */
Expand Down
4 changes: 4 additions & 0 deletions src/naemon/commands.h
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
#include "objects_contact.h"
#include "objects_host.h"
#include "objects_service.h"
#include "events.h"

NAGIOS_BEGIN_DECL

Expand Down Expand Up @@ -220,6 +221,9 @@ int shutdown_command_file_worker(void);
int disconnect_command_file_worker(void);
int command_worker_get_pid(void);

void handle_host_acknowledgement_expire_event(struct nm_event_execution_properties *evprop); /* removes an expired host acknowledgement */
void handle_service_acknowledgement_expire_event(struct nm_event_execution_properties *evprop); /* removes an expired service acknowledgement */

NAGIOS_END_DECL

#endif
5 changes: 1 addition & 4 deletions src/naemon/xrddefault.c
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,9 @@
#include "nm_alloc.h"
#include "broker.h"
#include "events.h"
#include "commands.h"
#include <string.h>

/* from commands.c */
void handle_host_acknowledgement_expire_event(struct nm_event_execution_properties *evprop); /* removes an expired host acknowledgement */
void handle_service_acknowledgement_expire_event(struct nm_event_execution_properties *evprop); /* removes an expired service acknowledgement */

/******************************************************************/
/********************* INIT/CLEANUP FUNCTIONS *********************/
/******************************************************************/
Expand Down

0 comments on commit f37e375

Please sign in to comment.