Fixes
This commit is contained in:
parent
fe48a306c3
commit
e2c269367c
@ -123,7 +123,7 @@ void set_next(int hour, int min)
|
|||||||
#if defined(__OpenBSD__)
|
#if defined(__OpenBSD__)
|
||||||
gmtime_r(&now, &etm);
|
gmtime_r(&now, &etm);
|
||||||
#else
|
#else
|
||||||
etm = gmtime(&now);
|
etm = *gmtime(&now);
|
||||||
#endif
|
#endif
|
||||||
uhour = etm.tm_hour; /* For some reason, these intermediate integers are needed */
|
uhour = etm.tm_hour; /* For some reason, these intermediate integers are needed */
|
||||||
umin = etm.tm_min;
|
umin = etm.tm_min;
|
||||||
|
@ -272,7 +272,7 @@ void CreateSema(char *sem)
|
|||||||
sprintf(temp, "%s/var/sema/%s", getenv("MBSE_ROOT"), sem);
|
sprintf(temp, "%s/var/sema/%s", getenv("MBSE_ROOT"), sem);
|
||||||
if (access(temp, F_OK) == 0)
|
if (access(temp, F_OK) == 0)
|
||||||
return;
|
return;
|
||||||
if ((fp = fopen(temp, "w"))) {
|
if ((fp = fopen(temp, "w")))
|
||||||
fclose(fp);
|
fclose(fp);
|
||||||
else
|
else
|
||||||
Syslog('?', "Can't create semafore %s", temp);
|
Syslog('?', "Can't create semafore %s", temp);
|
||||||
@ -286,9 +286,9 @@ void TouchSema(char *sem)
|
|||||||
FILE *fp;
|
FILE *fp;
|
||||||
|
|
||||||
sprintf(temp, "%s/var/sema/%s", getenv("MBSE_ROOT"), sem);
|
sprintf(temp, "%s/var/sema/%s", getenv("MBSE_ROOT"), sem);
|
||||||
if ((fp = fopen(temp, "w"))) {
|
if ((fp = fopen(temp, "w")))
|
||||||
fclose(fp);
|
fclose(fp);
|
||||||
} else
|
else
|
||||||
Syslog('?', "Can't touch semafore %s", temp);
|
Syslog('?', "Can't touch semafore %s", temp);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user