aboutsummaryrefslogtreecommitdiff
path: root/bpkg/diagnostics.cxx
diff options
context:
space:
mode:
authorKaren Arutyunov <karen@codesynthesis.com>2018-02-19 14:26:02 +0300
committerKaren Arutyunov <karen@codesynthesis.com>2018-02-19 14:27:24 +0300
commit3d4838d3706de2ba0045dc9f99a3dc96398def64 (patch)
treeece29423c4ece1139169a8b952914471593fe577 /bpkg/diagnostics.cxx
parentd3ef22615ba7d37be18c31b2fdd1bdb6be164939 (diff)
Parse repositories and packages files for git repositories
Diffstat (limited to 'bpkg/diagnostics.cxx')
-rw-r--r--bpkg/diagnostics.cxx16
1 files changed, 2 insertions, 14 deletions
diff --git a/bpkg/diagnostics.cxx b/bpkg/diagnostics.cxx
index 9672926..bb175d8 100644
--- a/bpkg/diagnostics.cxx
+++ b/bpkg/diagnostics.cxx
@@ -10,6 +10,7 @@
#include <odb/statement.hxx>
#include <libbutl/process.mxx>
+#include <libbutl/process-io.mxx> // operator<<(ostream, process_arg)
using namespace std;
using namespace butl;
@@ -25,19 +26,6 @@ namespace bpkg
print_process (r, args, n);
}
- struct process_args
- {
- const char* const* a;
- size_t n;
- };
-
- inline static ostream&
- operator<< (ostream& o, const process_args& p)
- {
- process::print (o, p.a, p.n);
- return o;
- }
-
void
print_process (diag_record& r, const char* const args[], size_t n)
{
@@ -104,7 +92,7 @@ namespace bpkg
if (verb >= 3)
{
diag_record dr (*this);
- process::print (dr.os, args, n);
+ print_process (dr, args, n);
}
}