From 3d4838d3706de2ba0045dc9f99a3dc96398def64 Mon Sep 17 00:00:00 2001 From: Karen Arutyunov Date: Mon, 19 Feb 2018 14:26:02 +0300 Subject: Parse repositories and packages files for git repositories --- bpkg/diagnostics.cxx | 16 ++-------------- 1 file changed, 2 insertions(+), 14 deletions(-) (limited to 'bpkg/diagnostics.cxx') 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 #include +#include // 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); } } -- cgit v1.1