[Pkg-running-devel] [antpm] 09/20: tty: call argument only once
Kristof Ralovich
ralovich-guest at moszumanska.debian.org
Sun Jun 28 12:26:50 UTC 2015
This is an automated email from the git hooks/post-receive script.
ralovich-guest pushed a commit to branch upstream
in repository antpm.
commit 6854e42db0547f68157bed3293222b312365ac64
Author: RALOVICH, Kristof <tade60 at freemail.hu>
Date: Sun May 31 19:07:01 2015 +0200
tty: call argument only once
---
src/SerialTty.cpp | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/SerialTty.cpp b/src/SerialTty.cpp
index 65e4415..24194e2 100644
--- a/src/SerialTty.cpp
+++ b/src/SerialTty.cpp
@@ -320,10 +320,10 @@ SerialTty::~SerialTty()
#define ENSURE_OR_RETURN_FALSE(e) \
do \
{ \
- if(-1 == (e)) \
+ if((e)<0) \
{ \
/*perror(#e);*/ \
- const char* se=strerror(e); \
+ const char* se=strerror(errno); \
LOG(antpm::LOG_ERR) << se << "\n"; \
return false; \
} \
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-running/antpm.git
More information about the Pkg-running-devel
mailing list