mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-09 18:31:04 +00:00
gcc 4.5 warning fix.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@38687 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
cdb1f9a000
commit
33f7c028a2
@ -1015,7 +1015,8 @@ bool LyXComm::loadFilesInOtherInstance()
|
||||
break;
|
||||
string const cmd = "LYXCMD:pipe:file-open:" +
|
||||
fname.absFileName() + '\n';
|
||||
::write(pipefd, cmd.c_str(), cmd.length());
|
||||
if (::write(pipefd, cmd.c_str(), cmd.length()) < 0)
|
||||
LYXERR0("Cannot write to pipe!");
|
||||
::close(pipefd);
|
||||
++loaded_files;
|
||||
it = theFilesToLoad().erase(it);
|
||||
|
Loading…
Reference in New Issue
Block a user