X-Git-Url: https://diplodocus.org/git/nmh/blobdiff_plain/544d69c657e0d33176b47afc9288ce0a588aff6d..bddd9ca00cd2e2e73aded115a59614af3a74a6cb:/sbr/lock_file.c diff --git a/sbr/lock_file.c b/sbr/lock_file.c index c3dbbd9c..19cad331 100644 --- a/sbr/lock_file.c +++ b/sbr/lock_file.c @@ -90,7 +90,7 @@ static int lkopen_lockf (const char *, int, mode_t, int *); static int lkopen_flock (const char *, int, mode_t, int *); #endif /* HAVE_FLOCK */ -static enum locktype init_locktype(const char *); +static enum locktype init_locktype(const char *) PURE; static int lkopen_dot (const char *, int, mode_t, int *); static void lkclose_dot (int, const char *); @@ -628,7 +628,9 @@ lockname (const char *file, struct lockinfo *li, int isnewlock) snprintf (bp, sizeof(li->curlock) - bplen, "%s.lock", cp); -#if !defined(HAVE_LIBLOCKFILE) +#if defined(HAVE_LIBLOCKFILE) + NMH_UNUSED(isnewlock); +#else /* * If this is for a new lock, create a name for * the temporary lock file for lockit()