X-Git-Url: http://ftp.carnet.hr/carnet-debian/scm?p=ossec-hids.git;a=blobdiff_plain;f=src%2Fclient-agent%2Fnotify.c;h=39c332c1cc8bb7c884739fc95f55fa6d4be12e43;hp=373dd664eac671a3db32f387c5545e5db83483a2;hb=301048b51990573e58a30dc4a5bb4ec285cad554;hpb=914feba5d54f979cd5d7e69c349c3d01f630042a diff --git a/src/client-agent/notify.c b/src/client-agent/notify.c index 373dd66..39c332c 100755 --- a/src/client-agent/notify.c +++ b/src/client-agent/notify.c @@ -1,11 +1,11 @@ -/* @(#) $Id: notify.c,v 1.23 2009/06/26 13:50:02 dcid Exp $ */ +/* @(#) $Id$ */ /* 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 3) as published by the FSF - Free Software + * License (version 2) as published by the FSF - Free Software * Foundation */ @@ -68,6 +68,7 @@ void run_notify() curr_time = time(0); + #ifndef ONEWAY /* Check if the server has responded */ if((curr_time - available_server) > (3*NOTIFY_TIME)) { @@ -83,6 +84,7 @@ void run_notify() verbose(SERVER_UP, ARGV0); os_delwait(); } + #endif /* Check if time has elapsed */