1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-10-30 21:49:25 +00:00
freebsd-ports/news/bgrab/files/patch-ac
Chris Piazza 55754847d0 Update to version 1.2.3
PR:		13960
Submitted by:	maintainer
1999-10-01 18:06:34 +00:00

15 lines
376 B
Plaintext

--- server.cc.orig Thu Sep 16 16:50:51 1999
+++ server.cc Thu Sep 16 17:00:39 1999
@@ -8,7 +8,10 @@
server::server(char *host, unsigned long port) {
inbuf = 0;
bzero(buf,BUFSIZE+1);
- soc = connectto(host,port);
+ if((soc = connectto(host,port)) == -1) {
+ fprintf(stderr, "Cannot connect to host \"%s\"\n", host);
+ exit(1);
+ }
}
int server::sockfd() {