Fixes
This commit is contained in:
parent
fe48a306c3
commit
e2c269367c
@ -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;
|
||||
|
@ -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);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user