]> git.stg.codes - stg.git/blobdiff - include/stg/admin_conf.h
Install some necessary libs in Travis.
[stg.git] / include / stg / admin_conf.h
index a2639d36963899224c812bb6189625910c562ebf..88d944bfef9d861aa096a8987bd585b11ae7e11d 100644 (file)
@@ -11,7 +11,7 @@
 
 #include <string>
 
 
 #include <string>
 
-#include "os_int.h"
+#include <cstdint>
 
 #define ADM_LOGIN_LEN   (32)
 #define ADM_PASSWD_LEN  (32)
 
 #define ADM_LOGIN_LEN   (32)
 #define ADM_PASSWD_LEN  (32)
@@ -74,8 +74,19 @@ struct ADMIN_CONF
 //-----------------------------------------------------------------------------
 struct ADMIN_CONF_RES
 {
 //-----------------------------------------------------------------------------
 struct ADMIN_CONF_RES
 {
-    ADMIN_CONF_RES()
+    ADMIN_CONF_RES() {}
+    ADMIN_CONF_RES(const ADMIN_CONF_RES & rhs)
+        : priv(rhs.priv),
+          login(rhs.login),
+          password(rhs.password)
     {}
     {}
+    ADMIN_CONF_RES & operator=(const ADMIN_CONF_RES & rhs)
+    {
+        priv = rhs.priv;
+        login = rhs.login;
+        password = rhs.password;
+        return *this;
+    }
     RESETABLE<PRIV> priv;
     RESETABLE<std::string> login;
     RESETABLE<std::string> password;
     RESETABLE<PRIV> priv;
     RESETABLE<std::string> login;
     RESETABLE<std::string> password;