]> WPIA git - cassiopeia.git/blobdiff - src/apps/client.cpp
fmt: extract lambdas to make them better formatted
[cassiopeia.git] / src / apps / client.cpp
index f044c2b84a43d42394ddf457f4b33aad3f06726d..92a2369f471465e273cbeebce0119092f0ffff92 100644 (file)
@@ -106,11 +106,10 @@ int main( int argc, const char *argv[] ) {
 
             if( lastCRLCheck + 30 * 60 < current ) {
                 // todo set good log TODO FIXME
-                sign->setLog( std::shared_ptr<std::ostream>(
-                    &std::cout,
-                    []( std::ostream* o ) {
-                        ( void ) o;
-                    } ) );
+                auto ostreamFree = []( std::ostream * o ) {
+                    ( void ) o;
+                };
+                sign->setLog( std::shared_ptr<std::ostream>( &std::cout, ostreamFree ) );
                 checkCRLs( sign );
                 lastCRLCheck = current;
             }