Fix: missing newline

This commit is contained in:
Tim Schubert 2018-10-29 12:02:37 +01:00
parent a91f16c802
commit b2ad38539a

View file

@ -273,7 +273,7 @@ int client() {
char *line = (char *) malloc(BUFLEN); char *line = (char *) malloc(BUFLEN);
while (getline(&line, &linesize, stdin) != -1) { while (getline(&line, &linesize, stdin) != -1) {
if (strlen(line) <= 1) { if (strlen(line) <= 1) {
printf("client: closing"); printf("client: closing\n");
break; break;
} }
@ -374,6 +374,5 @@ int main(int argc, char *argv[]) {
if (close(SOCKFD) != 0) { if (close(SOCKFD) != 0) {
perror("close"); perror("close");
} }
printf("closing\n");
return 0; return 0;
} }