summaryrefslogtreecommitdiff
path: root/src/stream.cc
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2010-06-11 16:03:50 -0400
committerJohn Wiegley <johnw@newartisans.com>2010-06-11 17:02:25 -0400
commitdea2aed0b509734ec4e1cd163ac2a4f013000da2 (patch)
tree7908da76c67ae5172882306a319bf26df81b73b4 /src/stream.cc
parentd580079df892c30d023b3211d6c4611c17b11f8f (diff)
downloadfork-ledger-dea2aed0b509734ec4e1cd163ac2a4f013000da2.tar.gz
fork-ledger-dea2aed0b509734ec4e1cd163ac2a4f013000da2.tar.bz2
fork-ledger-dea2aed0b509734ec4e1cd163ac2a4f013000da2.zip
Untabified all source files
Diffstat (limited to 'src/stream.cc')
-rw-r--r--src/stream.cc8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/stream.cc b/src/stream.cc
index 272d4f1c..79faa05a 100644
--- a/src/stream.cc
+++ b/src/stream.cc
@@ -73,11 +73,11 @@ namespace {
if (status < 0) {
throw std::logic_error(_("Failed to fork child process"));
}
- else if (status == 0) { // child
+ else if (status == 0) { // child
// Duplicate pipe's reading end into stdin
status = dup2(pfd[0], STDIN_FILENO);
if (status == -1)
- perror("dup2");
+ perror("dup2");
// Close unuseful file descriptors: the pipe's writing and reading
// ends (the latter is not needed anymore, after the duplication).
@@ -98,7 +98,7 @@ namespace {
perror((std::string("execlp: ") + pager_path.string()).c_str());
exit(1);
}
- else { // parent
+ else { // parent
close(pfd[0]);
typedef iostreams::stream<iostreams::file_descriptor_sink> fdstream;
*os = new fdstream(pfd[1]);
@@ -108,7 +108,7 @@ namespace {
}
void output_stream_t::initialize(const optional<path>& output_file,
- const optional<path>& pager_path)
+ const optional<path>& pager_path)
{
if (output_file && *output_file != "-")
os = new ofstream(*output_file);