Sparc systems fixes

This commit is contained in:
Michiel Broek
2001-12-23 16:44:18 +00:00
parent 2ce85589e4
commit a372efaea8
62 changed files with 170 additions and 193 deletions

View File

@@ -198,7 +198,7 @@ int AppendFGroup(void)
sprintf(ffile, "%s/etc/fgroups.temp", getenv("MBSE_ROOT"));
if ((fil = fopen(ffile, "a")) != NULL) {
memset(&fgroup, 0, sizeof(fgroup));
time(&fgroup.StartDate);
fgroup.StartDate = time(NULL);
fgroup.DivideCost = TRUE;
fwrite(&fgroup, sizeof(fgroup), 1, fil);
fclose(fil);

View File

@@ -1672,7 +1672,7 @@ int global_doc(FILE *fp, FILE *toc, int page)
fprintf(fp, " Machine type %s\n", utsbuf.machine);
}
fprintf(fp, " MBSE_ROOT %s\n", getenv("MBSE_ROOT"));
time(&now);
now = time(NULL);
fprintf(fp, " Date created %s", ctime(&now));
addtoc(fp, toc, 1, 2, page, (char *)"System fidonet addresses");

View File

@@ -198,7 +198,7 @@ int AppendMGroup(void)
sprintf(ffile, "%s/etc/mgroups.temp", getenv("MBSE_ROOT"));
if ((fil = fopen(ffile, "a")) != NULL) {
memset(&mgroup, 0, sizeof(mgroup));
time(&mgroup.StartDate);
mgroup.StartDate = time(NULL);
fwrite(&mgroup, sizeof(mgroup), 1, fil);
fclose(fil);
MGrpUpdated = 1;

View File

@@ -486,7 +486,7 @@ void ImportOneline(void)
return;
}
time(&Time);
Time = time(NULL);
l_date = localtime(&Time);
sprintf(buf, "%02d-%02d-%04d", l_date->tm_mday, l_date->tm_mon+1, l_date->tm_year+1900);

View File

@@ -94,7 +94,7 @@ void show_date(int fg, int bg, int y, int x)
time_t now;
char *p;
time(&now);
now = time(NULL);
if (now != lasttime) {
lasttime = now;
set_color(LIGHTGREEN, BLUE);