summaryrefslogtreecommitdiff
path: root/test/interactive-helper/extract-control.cc
diff options
context:
space:
mode:
authorDavid Kalnischkies <kalnischkies@gmail.com>2012-03-20 21:08:15 +0100
committerDavid Kalnischkies <kalnischkies@gmail.com>2012-03-20 21:08:15 +0100
commitfca9751603f4f1ee0612208c009326490dca9a53 (patch)
tree2efebf88aacd6cd3420c0205abac8afa875dba47 /test/interactive-helper/extract-control.cc
parent319790f4f86f595724fb2bd5aa6274d345469010 (diff)
for these helpers we don't need too much checks,
but no warnings from gcc helps
Diffstat (limited to 'test/interactive-helper/extract-control.cc')
-rw-r--r--test/interactive-helper/extract-control.cc3
1 files changed, 1 insertions, 2 deletions
diff --git a/test/interactive-helper/extract-control.cc b/test/interactive-helper/extract-control.cc
index a1b3600aa..3f7feabcb 100644
--- a/test/interactive-helper/extract-control.cc
+++ b/test/interactive-helper/extract-control.cc
@@ -21,8 +21,7 @@ bool ExtractMember(const char *File,const char *Member)
if (Extract.Control == 0)
return true;
- write(STDOUT_FILENO,Extract.Control,Extract.Length);
- return true;
+ return write(STDOUT_FILENO,Extract.Control,Extract.Length) != -1;
}
int main(int argc, const char *argv[])