X-Git-Url: http://git.marmaro.de/?a=blobdiff_plain;f=sbr%2Flock_file.c;h=bbfc8fc7cf4249089f4c0ae4c44dcc89d9c9cdb1;hb=57cd23b8807fa351800ba7277c5636a133241166;hp=c7dffcfc0602f36386dd1a0ed01542b2691ab6fb;hpb=2c3d90ed127ab47e695350367ca3c34d4324bcc4;p=mmh diff --git a/sbr/lock_file.c b/sbr/lock_file.c index c7dffcf..bbfc8fc 100644 --- a/sbr/lock_file.c +++ b/sbr/lock_file.c @@ -167,6 +167,8 @@ lkclose (int fd, char *file) lockfile_remove(lkinfo.curlock); #endif /* HAVE_LIBLOCKFILE */ timerOFF (fd); /* turn off lock timer */ +#else /* DOT_LOCKING */ + NMH_UNUSED (file); #endif /* DOT_LOCKING */ return (close (fd)); @@ -258,6 +260,8 @@ lkfclose (FILE *fp, char *file) lockfile_remove(lkinfo.curlock); #endif /* HAVE_LIBLOCKFILE */ timerOFF (fileno(fp)); /* turn off lock timer */ +#else /* DOT_LOCKING */ + NMH_UNUSED (file); #endif /* DOT_LOCKING */ return (fclose (fp)); @@ -584,6 +588,7 @@ alrmser (int sig) { char *lockfile; struct lock *lp; + NMH_UNUSED (sig); /* update the ctime of all the lock files */ for (lp = l_top; lp; lp = lp->l_next) {