* `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"
#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 )
* `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 */
#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