summary |
tags |
clone url |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
d1fa89a)
SCCS-vsn: usr.bin/finger/finger.c 5.10
#endif not lint
#ifndef lint
#endif not lint
#ifndef lint
-static char sccsid[] = "@(#)finger.c 5.9 (Berkeley) %G%";
+static char sccsid[] = "@(#)finger.c 5.10 (Berkeley) %G%";
perror("socket");
return (1);
}
perror("socket");
return (1);
}
- printf("[%s]", hp->h_name); fflush(stdout);
+ printf("[%s]\n", hp->h_name);
+ fflush(stdout);
if (connect(s, (char *)&sin, sizeof (sin)) < 0) {
perror("connect");
close(s);
return (1);
}
if (connect(s, (char *)&sin, sizeof (sin)) < 0) {
perror("connect");
close(s);
return (1);
}
if (large) write(s, "/W ", 3);
write(s, name, strlen(name));
write(s, "\r\n", 2);
if (large) write(s, "/W ", 3);
write(s, name, strlen(name));
write(s, "\r\n", 2);