diff options
author | Imre Kaloz <kaloz@openwrt.org> | 2005-12-16 09:37:10 +0000 |
---|---|---|
committer | Imre Kaloz <kaloz@openwrt.org> | 2005-12-16 09:37:10 +0000 |
commit | affd4d639bcb9baa66dd89e814b9c7ef4e83f18b (patch) | |
tree | 641e7602c28576e07b16d5724c455f77a64ac33a /openwrt/package/iptables/patches | |
parent | 6070f77c0f66190c25f711e4361348d7741f0e03 (diff) | |
download | mtk-20170518-affd4d639bcb9baa66dd89e814b9c7ef4e83f18b.zip mtk-20170518-affd4d639bcb9baa66dd89e814b9c7ef4e83f18b.tar.gz mtk-20170518-affd4d639bcb9baa66dd89e814b9c7ef4e83f18b.tar.bz2 |
add gcc4 fix for iptables 1.3.4
SVN-Revision: 2692
Diffstat (limited to 'openwrt/package/iptables/patches')
-rw-r--r-- | openwrt/package/iptables/patches/03-gcc4_fix.patch | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/openwrt/package/iptables/patches/03-gcc4_fix.patch b/openwrt/package/iptables/patches/03-gcc4_fix.patch new file mode 100644 index 0000000..26ef110 --- /dev/null +++ b/openwrt/package/iptables/patches/03-gcc4_fix.patch @@ -0,0 +1,30 @@ +diff -Nur iptables-1.3.4/extensions/libipt_string.c iptables-1.3.4-openwrt/extensions/libipt_string.c +--- iptables-1.3.4/extensions/libipt_string.c 2005-10-31 20:03:50.000000000 +0100 ++++ iptables-1.3.4-openwrt/extensions/libipt_string.c 2005-12-15 15:08:27.000000000 +0100 +@@ -63,7 +63,7 @@ + } + + static void +-parse_string(const unsigned char *s, struct ipt_string_info *info) ++parse_string(const char *s, struct ipt_string_info *info) + { + if (strlen(s) <= IPT_STRING_MAX_PATTERN_SIZE) { + strncpy(info->pattern, s, IPT_STRING_MAX_PATTERN_SIZE); +@@ -74,7 +74,7 @@ + } + + static void +-parse_algo(const unsigned char *s, struct ipt_string_info *info) ++parse_algo(const char *s, struct ipt_string_info *info) + { + if (strlen(s) <= IPT_STRING_MAX_ALGO_NAME_SIZE) { + strncpy(info->algo, s, IPT_STRING_MAX_ALGO_NAME_SIZE); +@@ -84,7 +84,7 @@ + } + + static void +-parse_hex_string(const unsigned char *s, struct ipt_string_info *info) ++parse_hex_string(const char *s, struct ipt_string_info *info) + { + int i=0, slen, sindex=0, schar; + short hex_f = 0, literal_f = 0; |