X-Git-Url: http://ftp.carnet.hr/carnet-debian/scm?p=ossec-hids.git;a=blobdiff_plain;f=src%2Fmonitord%2Fmonitor_agents.c;h=fbaac5844936fa70caa4b8f5d91b331d85e93d2b;hp=133d31f16766316cb8b5f491a2e3bf0af92cdafd;hb=6ef2f786c6c8ead94841b5f93baf9f43421f08c8;hpb=301048b51990573e58a30dc4a5bb4ec285cad554 diff --git a/src/monitord/monitor_agents.c b/src/monitord/monitor_agents.c index 133d31f..fbaac58 100755 --- a/src/monitord/monitor_agents.c +++ b/src/monitord/monitor_agents.c @@ -1,11 +1,12 @@ -/* @(#) $Id$ */ +/* @(#) $Id: ./src/monitord/monitor_agents.c, 2011/09/08 dcid Exp $ + */ /* Copyright (C) 2009 Trend Micro Inc. * All right reserved. * * This program is a free software; you can redistribute it * and/or modify it under the terms of the GNU General Public - * License (version 2) as published by the FSF - Free Software + * License (version 2) as published by the FSF - Free Software * Foundation */ @@ -39,7 +40,7 @@ void monitor_agents() { int available = 0; char **tmp_av; - + tmp_av = av_agents; while(tmp_av && *tmp_av) { @@ -55,7 +56,7 @@ void monitor_agents() if(available == 0) { char str[OS_SIZE_1024 +1]; - + /* Sending disconnected message */ snprintf(str, OS_SIZE_1024 -1, OS_AG_DISCON, *cr_agents); if(SendMSG(mond.a_queue, str, ARGV0, @@ -64,7 +65,7 @@ void monitor_agents() merror(QUEUE_SEND, ARGV0); } } - + cr_agents++; }