[wiki] [sites] fix ssl patch formatting. doesn't apply correctly otherwise. || Kylie McClain

From: <git_AT_suckless.org>
Date: Sun, 15 Mar 2015 03:32:02 +0100

commit 18336dbcbc242515690d14b490c972dc9b8acaad
Author: Kylie McClain <somasissounds_AT_gmail.com>
Date: Sat Mar 14 22:31:21 2015 -0400

    fix ssl patch formatting. doesn't apply correctly otherwise.

diff --git a/tools.suckless.org/ii/patches/ii-1.7-ssl.diff b/tools.suckless.org/ii/patches/ii-1.7-ssl.diff
index 5234d73..6ce7a28 100644
--- a/tools.suckless.org/ii/patches/ii-1.7-ssl.diff
+++ b/tools.suckless.org/ii/patches/ii-1.7-ssl.diff
_AT_@ -89,14 +89,15 @@ diff -up a/ii.c b/ii.c
 -static int tcpopen(unsigned short port) {
 +conn *tcpopen(unsigned short port) {
          int fd;
-+ conn *c;
- struct sockaddr_in sin;
- struct hostent *hp = gethostbyname(host);
++ conn *c;
+ struct addrinfo req, *res, *orig_res;
+ char service[6];
  
 _AT_@ -172,7 +185,22 @@ static int tcpopen(unsigned short port)
                  perror("ii: cannot connect to host");
                  exit(EXIT_FAILURE);
          }
+
 - return fd;
 + c = malloc(sizeof(conn));
 + c->irc = fd;
Received on Sun Mar 15 2015 - 03:32:02 CET

This archive was generated by hypermail 2.3.0 : Thu Jun 18 2015 - 17:40:15 CEST