Fix: missing newline
This commit is contained in:
parent
a91f16c802
commit
b2ad38539a
1 changed files with 1 additions and 2 deletions
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue