Purging unused code and fixing prints in socket code
This commit is contained in:
parent
196358c49f
commit
cd4f1433a3
2 changed files with 1 additions and 4 deletions
|
|
@ -33,7 +33,7 @@ int main() {
|
|||
int bytes = recv(sock_fd, buffer, sizeof(buffer) - 1, 0);
|
||||
if (bytes > 0) {
|
||||
buffer[bytes] = '\0';
|
||||
printf("Client got: %s\n", buffer);
|
||||
printf("Client got: %s", buffer);
|
||||
}
|
||||
|
||||
close(sock_fd);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue