From: Thibault Godouet Date: Sun, 25 Aug 2002 17:25:35 +0000 (+0000) Subject: *** empty log message *** X-Git-Tag: ver2_9_4~125 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5fca972d74a2aa6051f934c9a6dd2104a00f5f8e;p=thirdparty%2Ffcron.git *** empty log message *** --- diff --git a/database.c b/database.c index cd47812..2d70965 100644 --- a/database.c +++ b/database.c @@ -22,7 +22,7 @@ * `LICENSE' that comes with the fcron source distribution. */ - /* $Id: database.c,v 1.63 2002-07-19 19:38:56 thib Exp $ */ + /* $Id: database.c,v 1.64 2002-08-25 17:26:26 thib Exp $ */ #include "fcron.h" @@ -1143,11 +1143,7 @@ check_lavg(time_t lim) #else register int i = 0; - double l_avg[3]; - - l_avg[0] = 0; - l_avg[1] = 0; - l_avg[2] = 0; + double l_avg[3]= {0, 0, 0}; /* first, check if some lines must be executed because of until */ while ( i < lavg_num ) diff --git a/dyncom.h b/dyncom.h index ff005f7..717f42b 100644 --- a/dyncom.h +++ b/dyncom.h @@ -21,7 +21,7 @@ * `LICENSE' that comes with the fcron source distribution. */ - /* $Id: dyncom.h,v 1.2 2002-08-22 21:33:20 thib Exp $ */ + /* $Id: dyncom.h,v 1.3 2002-08-25 17:25:35 thib Exp $ */ /* This file describe the communication protocol between fcron and fcrondyn */ @@ -41,9 +41,9 @@ #endif /* string which means : "No more data to read" */ -/* Warning : should be a 1-char string, otherwise we need more tests in talk_fcron() - * (because the string may be recv()ed in 2 pieces) */ -#define END_STR "\0" +/* Warning : should be a short string, otherwise we may need more tests in talk_fcron() + * (because the string might be recv()ed in 2 pieces) */ +#define END_STR "\0\0" /* arg types */ #define USER 1