Whitespace cleanups (yes, I do care about that)
This commit is contained in:
parent
aaaae93afc
commit
467515943d
1 changed files with 20 additions and 19 deletions
|
@ -118,6 +118,7 @@ int createSocket() {
|
||||||
perror("bind");
|
perror("bind");
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
listen(create_socket, 5);
|
listen(create_socket, 5);
|
||||||
chmod(SOCKET, 0666);
|
chmod(SOCKET, 0666);
|
||||||
|
|
||||||
|
@ -128,7 +129,7 @@ void handleClient(int socket) {
|
||||||
struct sockaddr_un address;
|
struct sockaddr_un address;
|
||||||
socklen_t addrlen;
|
socklen_t addrlen;
|
||||||
int client = accept(socket, (struct sockaddr *)&address, &addrlen);
|
int client = accept(socket, (struct sockaddr *)&address, &addrlen);
|
||||||
if(client >= 0) {
|
if (client >= 0) {
|
||||||
std::stringstream ss("");
|
std::stringstream ss("");
|
||||||
ss << countRouters() << "\n";
|
ss << countRouters() << "\n";
|
||||||
write(client, ss.str().c_str(), ss.str().size());
|
write(client, ss.str().c_str(), ss.str().size());
|
||||||
|
|
Loading…
Reference in a new issue