From 6b5cab1e260fb55ae811d0f904139e1f356b5003 Mon Sep 17 00:00:00 2001 From: thib Date: Sun, 25 Aug 2002 17:25:35 +0000 Subject: [PATCH] *** empty log message *** --- database.c | 8 ++------ dyncom.h | 8 ++++---- 2 files changed, 6 insertions(+), 10 deletions(-) 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 -- 2.40.0