]> git.lyx.org Git - lyx.git/blobdiff - src/lyxserver.C
Point fix, earlier forgotten
[lyx.git] / src / lyxserver.C
index d7044b146ff524976a148014c40cc83271d52fb3..ce70c08217ae46b5447f7e31f10f8c29fd24d13d 100644 (file)
@@ -1,12 +1,15 @@
-/* This file is part of
- * ======================================================
- *
- *           LyX, The Document Processor
+/**
+ * \file lyxserver.C
+ * This file is part of LyX, the document processor.
+ * Licence details can be found in the file COPYING.
  *
- *           Copyright 1995 Matthias Ettrich
- *           Copyright 1995-2001 The LyX Team.
+ * \author Lars Gullik Bjønnes
+ * \author Jean-Marc Lasgouttes
+ * \author Angus Leeming
+ * \author John Levon
  *
- * ====================================================== */
+ * Full author contact details are available in file CREDITS.
+ */
 
 /**
   Docu   : To use the lyxserver define the name of the pipe in your
@@ -60,6 +63,9 @@
 #include "support/os2_errortable.h"
 #endif
 
+
+using namespace lyx::support;
+
 using std::endl;
 
 // provide an empty mkfifo() if we do not have one. This disables the
@@ -190,7 +196,7 @@ int LyXComm::startPipe(string const & filename, bool write)
        if (fd < 0) {
                lyxerr << "LyXComm: Could not open pipe " << filename << '\n'
                       << strerror(errno) << endl;
-               lyx::unlink(filename);
+               unlink(filename);
                return -1;
        }
 
@@ -231,7 +237,7 @@ void LyXComm::endPipe(int & fd, string const & filename, bool write)
 
 // OS/2 pipes are deleted automatically
 #ifndef __EMX__
-       if (lyx::unlink(filename) < 0) {
+       if (unlink(filename) < 0) {
                lyxerr << "LyXComm: Could not remove pipe " << filename
                       << '\n' << strerror(errno) << endl;
        };