From 569e4ae760b27f9ab9f9ecf5af8102aa4fe583f9 Mon Sep 17 00:00:00 2001 From: Will Farrington Date: Wed, 20 Nov 2013 21:46:39 -0800 Subject: [PATCH] Fix types --- src/commands/notifications.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/commands/notifications.c b/src/commands/notifications.c index f2b5ddf..21013ec 100644 --- a/src/commands/notifications.c +++ b/src/commands/notifications.c @@ -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; @@ -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;