]> WPIA git - cassiopeia.git/blobdiff - src/config.cpp
fmt: run format script excluding lambdas
[cassiopeia.git] / src / config.cpp
index a4d32848ecb7de4e3e4609adc5a83e997d927d47..d078179cee5c8c47c6e0aba45bbe62987f9a9a60 100644 (file)
@@ -53,8 +53,8 @@ std::shared_ptr<std::unordered_map<std::string, std::string>> parseConf( std::st
 int parseProfiles() {
     CAs = std::unordered_map<std::string, std::shared_ptr<CAConfig>>();
 
-    DIRdp;
-    struct direntep;
+    DIR *dp;
+    struct dirent *ep;
     dp = opendir( "profiles" );
 
     if( dp == NULL ) {
@@ -95,8 +95,8 @@ int parseProfiles() {
 
         std::string cas = map->at( "ca" );
 
-        DIRdir;
-        struct direntent;
+        DIR *dir;
+        struct dirent *ent;
 
         if( ( dir = opendir( "ca" ) ) != NULL ) {
             while( ( ent = readdir( dir ) ) != NULL ) {