]> git.stg.codes - stg.git/blobdiff - projects/sgauthstress/user.cpp
Move variables declaration to the beginning of the function (old C)
[stg.git] / projects / sgauthstress / user.cpp
index 594879155ab12dd9a81bc4081ab62e7ed7d5dfcd..efe63af664bd181d407d8f6454a56e76dde9e917 100644 (file)
@@ -15,8 +15,8 @@ USER::USER(const std::string & l,
     : login(l),
       password(pwd),
       ip(i),
-      aliveTimeout(0),
-      userTimeout(0),
+      aliveTimeout(5),
+      userTimeout(60),
       phase(1),
       phaseChangeTime(0),
       rnd(0),
@@ -51,7 +51,7 @@ if (sock > 0)
     close(sock);
 }
 
-const USER & USER::operator=(const USER & rvalue)
+USER & USER::operator=(const USER & rvalue)
 {
 login = rvalue.login;
 password = rvalue.password;