From ad332e17189668d18aeeea2f61384f749d428d6a Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Wed, 10 Dec 2014 13:48:50 +0100 Subject: Revert "Use posix_spawn to run the pager" This reverts commit d34d2b2bbf784c0bb420a50905af25e02c6e4989. --- src/libutil/types.hh | 1 - src/libutil/util.cc | 10 ++-------- 2 files changed, 2 insertions(+), 9 deletions(-) (limited to 'src/libutil') diff --git a/src/libutil/types.hh b/src/libutil/types.hh index 030996a060e2..160884ee1ad7 100644 --- a/src/libutil/types.hh +++ b/src/libutil/types.hh @@ -73,7 +73,6 @@ class SysError : public Error public: int errNo; SysError(const FormatOrString & fs); - SysError(int errNo, const FormatOrString & fs); }; diff --git a/src/libutil/util.cc b/src/libutil/util.cc index 60be02cd4647..305e470ebde0 100644 --- a/src/libutil/util.cc +++ b/src/libutil/util.cc @@ -45,14 +45,8 @@ BaseError & BaseError::addPrefix(const FormatOrString & fs) SysError::SysError(const FormatOrString & fs) - : SysError(errno, fs) -{ -} - - -SysError::SysError(int errNo, const FormatOrString & fs) - : Error(format("%1%: %2%") % fs.s % strerror(errNo)) - , errNo(errNo) + : Error(format("%1%: %2%") % fs.s % strerror(errno)) + , errNo(errno) { } -- cgit 1.4.1