Added warning again

This commit is contained in:
Michiel Broek 2003-12-07 13:18:09 +00:00
parent bbacbd595d
commit 14232958a4
3 changed files with 44 additions and 2 deletions

View File

@ -2,6 +2,7 @@ $Id$
v0.39.3 26-Nov-2003 v0.39.3 26-Nov-2003
WARNING: DO NOT USE, PROBLEMS EXIST IN THIS CVS VERSION !!!!!!!!!!!!
general: general:
Since this version Posix threads are being used, please let Since this version Posix threads are being used, please let
me know if this doesn't compile on you system. me know if this doesn't compile on you system.
@ -24,6 +25,9 @@ v0.39.3 26-Nov-2003
libmsgbase: libmsgbase:
In JAM_Open replaced a strcpy with memmove. In JAM_Open replaced a strcpy with memmove.
libdbase:
Code cleanup in dbdupe.
mbcico: mbcico:
Dropped binkp CRC support because it will be incompatible with Dropped binkp CRC support because it will be incompatible with
future extensions. future extensions.

View File

@ -57,7 +57,9 @@ void InitDupes()
{ {
int i; int i;
Syslog('N', "Init Dupes"); Syslog('n', "Init Dupes");
memset(dupes, 0, sizeof(dupes));
for (i = 0; i < 3; i++) { for (i = 0; i < 3; i++) {
dupes[i].crcs= NULL; dupes[i].crcs= NULL;
dupes[i].loaded = FALSE; dupes[i].loaded = FALSE;
@ -104,6 +106,7 @@ int CheckDupe(unsigned long crc, int idx, int max)
else else
dupes[idx].peak = max + 5000; dupes[idx].peak = max + 5000;
dupes[idx].crcs = (unsigned long *)malloc(dupes[idx].peak * sizeof(unsigned long)); dupes[idx].crcs = (unsigned long *)malloc(dupes[idx].peak * sizeof(unsigned long));
memset(dupes[idx].crcs, 0, dupes[idx].peak * sizeof(unsigned long));
/* /*
* Load dupe records * Load dupe records

View File

@ -41,6 +41,8 @@
#include "makestat.h" #include "makestat.h"
extern int do_quiet;
FILE *newpage(char *, FILE *); FILE *newpage(char *, FILE *);
@ -124,6 +126,11 @@ void MakeStat(void)
return; return;
} }
if (!do_quiet) {
printf("\rMaking statistical HTML pages");
fflush(stdout);
}
Syslog('+', "Start making statistic HTML pages"); Syslog('+', "Start making statistic HTML pages");
name = calloc(128, sizeof(char)); name = calloc(128, sizeof(char));
if (Miy == 0) if (Miy == 0)
@ -166,7 +173,10 @@ void MakeStat(void)
fclose(fg); fclose(fg);
} }
if (!do_quiet) {
printf(".");
fflush(stdout);
}
sprintf(name, "%s/etc/mareas.data", getenv("MBSE_ROOT")); sprintf(name, "%s/etc/mareas.data", getenv("MBSE_ROOT"));
if ((fg = fopen(name, "r")) == NULL) { if ((fg = fopen(name, "r")) == NULL) {
WriteError("$Can't open %s", name); WriteError("$Can't open %s", name);
@ -211,6 +221,10 @@ void MakeStat(void)
fclose(fg); fclose(fg);
} }
if (!do_quiet) {
printf(".");
fflush(stdout);
}
sprintf(name, "%s/etc/fgroups.data", getenv("MBSE_ROOT")); sprintf(name, "%s/etc/fgroups.data", getenv("MBSE_ROOT"));
if ((fg = fopen(name, "r")) == NULL) { if ((fg = fopen(name, "r")) == NULL) {
WriteError("$Can't open %s", name); WriteError("$Can't open %s", name);
@ -245,6 +259,10 @@ void MakeStat(void)
fclose(fg); fclose(fg);
} }
if (!do_quiet) {
printf(".");
fflush(stdout);
}
sprintf(name, "%s/etc/tic.data", getenv("MBSE_ROOT")); sprintf(name, "%s/etc/tic.data", getenv("MBSE_ROOT"));
if ((fg = fopen(name, "r")) == NULL) { if ((fg = fopen(name, "r")) == NULL) {
WriteError("$Can't open %s", name); WriteError("$Can't open %s", name);
@ -280,6 +298,10 @@ void MakeStat(void)
fclose(fg); fclose(fg);
} }
if (!do_quiet) {
printf(".");
fflush(stdout);
}
sprintf(name, "%s/etc/nodes.data", getenv("MBSE_ROOT")); sprintf(name, "%s/etc/nodes.data", getenv("MBSE_ROOT"));
if ((fg = fopen(name, "r")) == NULL) { if ((fg = fopen(name, "r")) == NULL) {
WriteError("$Can't open %s", name); WriteError("$Can't open %s", name);
@ -326,6 +348,10 @@ void MakeStat(void)
fclose(fg); fclose(fg);
} }
if (!do_quiet) {
printf(".");
fflush(stdout);
}
sprintf(name, "%s/var/mailer.hist", getenv("MBSE_ROOT")); sprintf(name, "%s/var/mailer.hist", getenv("MBSE_ROOT"));
if ((fg = fopen(name, "r")) == NULL) { if ((fg = fopen(name, "r")) == NULL) {
WriteError("$Can't open %s", name); WriteError("$Can't open %s", name);
@ -369,6 +395,10 @@ void MakeStat(void)
fclose(fg); fclose(fg);
} }
if (!do_quiet) {
printf(".");
fflush(stdout);
}
sprintf(name, "%s/etc/sysinfo.data", getenv("MBSE_ROOT")); sprintf(name, "%s/etc/sysinfo.data", getenv("MBSE_ROOT"));
if ((fg = fopen(name, "r")) != NULL ) { if ((fg = fopen(name, "r")) != NULL ) {
if ((fi = OpenMacro("html.sysinfo", 'E', TRUE)) == NULL) { if ((fi = OpenMacro("html.sysinfo", 'E', TRUE)) == NULL) {
@ -396,6 +426,11 @@ void MakeStat(void)
free(name); free(name);
Syslog('+', "Finished making statistic HTML pages"); Syslog('+', "Finished making statistic HTML pages");
if (!do_quiet) {
printf("\r \r");
fflush(stdout);
}
} }