This commit is contained in:
Michiel Broek 2004-12-29 13:17:51 +00:00
parent fe48a306c3
commit e2c269367c
2 changed files with 4 additions and 4 deletions

View File

@ -123,7 +123,7 @@ void set_next(int hour, int min)
#if defined(__OpenBSD__)
gmtime_r(&now, &etm);
#else
etm = gmtime(&now);
etm = *gmtime(&now);
#endif
uhour = etm.tm_hour; /* For some reason, these intermediate integers are needed */
umin = etm.tm_min;

View File

@ -272,7 +272,7 @@ void CreateSema(char *sem)
sprintf(temp, "%s/var/sema/%s", getenv("MBSE_ROOT"), sem);
if (access(temp, F_OK) == 0)
return;
if ((fp = fopen(temp, "w"))) {
if ((fp = fopen(temp, "w")))
fclose(fp);
else
Syslog('?', "Can't create semafore %s", temp);
@ -286,9 +286,9 @@ void TouchSema(char *sem)
FILE *fp;
sprintf(temp, "%s/var/sema/%s", getenv("MBSE_ROOT"), sem);
if ((fp = fopen(temp, "w"))) {
if ((fp = fopen(temp, "w")))
fclose(fp);
} else
else
Syslog('?', "Can't touch semafore %s", temp);
}