Sparc systems fixes
This commit is contained in:
@@ -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);
|
||||
|
@@ -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");
|
||||
|
@@ -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;
|
||||
|
@@ -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);
|
||||
|
||||
|
@@ -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);
|
||||
|
Reference in New Issue
Block a user