Skip to content

Commit

Permalink
Fix types
Browse files Browse the repository at this point in the history
  • Loading branch information
wfarr committed Nov 21, 2013
1 parent 2ae16f2 commit 569e4ae
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/commands/notifications.c
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@ enable_notifications_for_obj(int sd, const char* obj, const char* rest)
enable_host_notifications(hst);
nsock_printf_nul(sd, "NOTIFICATIONS ENABLED FOR HOST (AND ITS SERVICES): %s\n", hst->display_name);

for(svc = hst->services; svc; svc = svc->next) {
enable_service_notifications(svc);
for (servicesmember* svcmem = hst->services; svcmem; svcmem = svcmem->next) {
enable_service_notifications(svcmem->service_ptr);
}

return 200;
Expand Down Expand Up @@ -52,8 +52,8 @@ disable_notifications_for_obj(int sd, const char* obj, const char* rest)
disable_host_notifications(hst);
nsock_printf_nul(sd, "NOTIFICATIONS DISABLED FOR HOST (AND ITS SERVICES): %s\n", hst->display_name);

for(svc = hst->services; svc; svc = svc->next) {
disable_service_notifications(svc);
for (servicesmember* svcmem = hst->services; svcmem; svcmem = svcmem->next) {
disable_service_notifications(svcmem->service_ptr);
}

return 200;
Expand Down

0 comments on commit 569e4ae

Please sign in to comment.