]> WPIA git - cassiopeia.git/blobdiff - src/util.cpp
fmt: run format script excluding lambdas
[cassiopeia.git] / src / util.cpp
index 55d586405d738cf94343de66361b0f4490e6319b..224613e7caff236cab5df05f5027a930d664c668 100644 (file)
@@ -117,7 +117,7 @@ std::pair<bool, time_t> parseDate( const std::string& date ) {
 }
 
 std::pair<bool, time_t> addMonths( std::time_t t, int32_t count ) {
-    std::tmparsed = gmtime( &t );
+    std::tm *parsed = gmtime( &t );
 
     if( !parsed || count <= 0 || count > 24 ) { // FIXED MAX-Validity-Length
         return std::pair<bool, time_t>( false, 0 );
@@ -179,7 +179,7 @@ std::pair<bool, time_t> parseYearInterval( std::time_t t, const std::string& dat
     }
 }
 
-std::unique_ptr<std::ofstream> openLogfile( const std::string &name ) {
+std::unique_ptr<std::ofstream> openLogfile( const std::stringname ) {
     struct stat buffer;
     std::string tname = name;
     int ctr = 2;