76acfa2dd2
```sh git grep -l '^patch_args=-Np0' "srcpkgs/$1*/template" | while read template; do for p in ${template%/template}/patches/*; do sed -i ' \,^[+-][+-][+-] /dev/null,b /^[*-]\+ [0-9]\+\(,[0-9]\+\)\? [*-]\+$/b s,^[*][*][*] ,&a/, /^--- /{ s,\(^--- \)\(./\)*,\1a/, s,[.-][Oo][Rr][Ii][Gg]\([ /]\),\1, s/[.-][Oo][Rr][Ii][Gg]$// s/[.]patched[.]\([^.]\)/.\1/ h } /^+++ -/{ g s/^--- a/+++ b/ b } s,\(^+++ \)\(./\)*,\1b/, ' "$p" done sed -i '/^patch_args=/d' $template done ```
20 lines
530 B
Diff
20 lines
530 B
Diff
--- a/src/ssl.c 2014-11-21 09:48:57.000000000 -0500
|
|
+++ b/src/ssl.c.fixed 2017-09-27 01:46:07.908463177 -0400
|
|
@@ -1,7 +1,7 @@
|
|
#include "vpn-ws.h"
|
|
|
|
#ifndef __WIN32__
|
|
-static int _vpn_ws_ssl_wait_read(fd) {
|
|
+static int _vpn_ws_ssl_wait_read(int fd) {
|
|
fd_set rset;
|
|
FD_ZERO(&rset);
|
|
FD_SET(fd, &rset);
|
|
@@ -12,7 +12,7 @@
|
|
return 0;
|
|
}
|
|
|
|
-static int _vpn_ws_ssl_wait_write(fd) {
|
|
+static int _vpn_ws_ssl_wait_write(int fd) {
|
|
fd_set wset;
|
|
FD_ZERO(&wset);
|
|
FD_SET(fd, &wset);
|