Skip to content

Commit

Permalink
fix typo
Browse files Browse the repository at this point in the history
  • Loading branch information
sni committed Sep 12, 2024
1 parent 5e868d5 commit 78eb265
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions neb_module_naemon/mod_gearman.c
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ extern int service_check_timeout;
extern int host_check_timeout;
extern int process_performance_data;
extern int log_notifications;
extern int log_global_notificatons;
extern int log_global_notifications;

/* global variables */
static objectlist * mod_gm_result_list = NULL;
Expand Down Expand Up @@ -732,7 +732,7 @@ static int handle_notifications( int event_type, void *data ) {
my_free(processed_command);

/* log the notification to program log file */
if ((ds->contact_name == NULL && log_global_notificatons == TRUE) || (ds->contact_name != NULL && log_notifications == TRUE)) {
if ((ds->contact_name == NULL && log_global_notifications == TRUE) || (ds->contact_name != NULL && log_notifications == TRUE)) {
if(svc != NULL) {
switch(ds->reason_type) {
case NOTIFICATION_CUSTOM:
Expand Down
2 changes: 1 addition & 1 deletion t/05-neb.c
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ unsigned long event_broker_options;
timed_event *schedule_event(__attribute__((unused)) time_t delay, __attribute__((unused)) event_callback callback, __attribute__((unused)) void *user_data) { return(NULL); }
int process_performance_data;
int log_notifications;
int log_global_notificatons;
int log_global_notifications;

#pragma GCC diagnostic push //Save actual diagnostics state
#pragma GCC diagnostic ignored "-Wpedantic" //Disable pedantic
Expand Down

0 comments on commit 78eb265

Please sign in to comment.