updated on Mon Jan 23 00:00:36 UTC 2012
[aur-mirror.git] / htun / include-and-static-updates.patch
blob88d113894cc81cccebad52baf6fc02cd5829a870
1 --- include/common.h 2003-02-22 16:26:04.000000000 -0500
2 +++ ../../src.new/htun-0.9.6/include/common.h 2011-03-20 00:50:46.210001372 -0400
3 @@ -30,6 +30,7 @@
4 #include "server.h"
5 #include "iprange.h"
7 +#define PATH_MAX (FILENAME_MAX)
8 #define HTUN_MAXPACKET 65536
9 #define HTUN_DEFAULT_CFGFILE "/etc/htund.conf"
10 #define HTUN_MAXCLIENTS 10
11 --- src/gram.y 2003-01-23 20:20:50.000000000 -0500
12 +++ ../../src.new/htun-0.9.6/src/gram.y 2011-03-20 01:13:46.976668039 -0400
13 @@ -329,7 +329,7 @@
14 die_error(yylineno, s1, s2);
17 -static void set_ip(struct in_addr *a, char *dst, char *src)
18 +void set_ip(struct in_addr *a, char *dst, char *src)
20 struct hostent host, *result = &host;
21 char buf[4096];
22 @@ -343,7 +343,7 @@
23 strncpy(dst, inet_ntoa(*a), 15);
26 -static int get_answer(char *name, char *true_val, char *false_val)
27 +int get_answer(char *name, char *true_val, char *false_val)
29 if(strstr(name, true_val) != NULL)
30 return 1;
31 @@ -353,7 +353,7 @@
32 yy_error("invalid answer", "answer must be 'yes' or 'no'" );
35 -static inline set_base64_user_pass( void )
36 +inline set_base64_user_pass( void )
38 char user_pass[90];