Squash gcc warning.

http://www.mail-archive.com/lyx-devel@lists.lyx.org/msg183142.html
This commit is contained in:
Pavel Sanda 2014-03-27 01:10:59 -07:00
parent 567c4bb506
commit 0f8a2d2860

View File

@ -1080,8 +1080,9 @@ int fileLock(const char * lock_file)
void fileUnlock(int fd, const char * /* lock_file*/)
{
#if defined(HAVE_LOCKF)
if ( fd >= 0) {
(void) lockf(fd, F_ULOCK, 0);
if (fd >= 0) {
if (lockf(fd, F_ULOCK, 0))
LYXERR0("Can't unlock the file.");
close(fd);
}
#endif