git.stg.codes
/
stg.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Moved SERVER_INFO parser from global scope.
[stg.git]
/
projects
/
sgauthstress
/
user.cpp
diff --git
a/projects/sgauthstress/user.cpp
b/projects/sgauthstress/user.cpp
index 808ff7aa2cb98c9b68621b476b59bfe35b7990c5..944907fe8abf74221dd12e2b3acd076a71e0abf5 100644
(file)
--- a/
projects/sgauthstress/user.cpp
+++ b/
projects/sgauthstress/user.cpp
@@
-1,5
+1,7
@@
+#include <sys/types.h>
#include <sys/socket.h>
#include <netinet/in.h>
#include <sys/socket.h>
#include <netinet/in.h>
+#include <unistd.h> // close
#include <cstring>
#include <cerrno>
#include <cstring>
#include <cerrno>
@@
-51,7
+53,7
@@
if (sock > 0)
close(sock);
}
close(sock);
}
-
const
USER & USER::operator=(const USER & rvalue)
+USER & USER::operator=(const USER & rvalue)
{
login = rvalue.login;
password = rvalue.password;
{
login = rvalue.login;
password = rvalue.password;