Skip to content
Snippets Groups Projects
Commit 986e7a5a authored by Rob Swindell's avatar Rob Swindell :speech_balloon:
Browse files

If semfile_check() is passed a NULL time_t*, just check for file existence

In this case, we don't care what the time stamp on the file is.
parent bac22857
No related branches found
No related tags found
No related merge requests found
Pipeline #5246 passed
......@@ -33,11 +33,15 @@
/* date/time stamp (if the file exists) against the passed time stamp (t) */
/* updating the time stamp to the latest dated semaphore file and returning */
/* TRUE if any where newer than the initial value. */
/* If the 't' parameter is NULL, only file existence is checked (not time). */
/****************************************************************************/
BOOL semfile_check(time_t* t, const char* fname)
{
time_t ft;
if(t == NULL)
return fexist(fname);
if(*t==0) /* uninitialized */
*t=time(NULL);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment