From 13da0775446dc24645bdbe52a081899d46a94c88 Mon Sep 17 00:00:00 2001 From: Waldemar Brodkorb Date: Fri, 15 Jan 2010 08:18:18 +0100 Subject: make ag241 allmodconfig compile --- .../patch-src_detection-plugins_sp_ip_tos_check_c | 26 ---------------------- 1 file changed, 26 deletions(-) delete mode 100644 package/snort/patches/patch-src_detection-plugins_sp_ip_tos_check_c (limited to 'package/snort/patches/patch-src_detection-plugins_sp_ip_tos_check_c') diff --git a/package/snort/patches/patch-src_detection-plugins_sp_ip_tos_check_c b/package/snort/patches/patch-src_detection-plugins_sp_ip_tos_check_c deleted file mode 100644 index 3f755d349..000000000 --- a/package/snort/patches/patch-src_detection-plugins_sp_ip_tos_check_c +++ /dev/null @@ -1,26 +0,0 @@ ---- snort-2.8.5.1.orig/src/detection-plugins/sp_ip_tos_check.c 2009-05-07 00:28:33.000000000 +0200 -+++ snort-2.8.5.1/src/detection-plugins/sp_ip_tos_check.c 2009-12-27 16:51:48.000000000 +0100 -@@ -191,19 +191,19 @@ void ParseIpTos(char *data, OptTreeNode - ds_ptr->not_flag = 1; - } - -- if(index(data, (int) 'x') == NULL && index(data, (int)'X') == NULL) -+ if(strchr(data, (int) 'x') == NULL && strchr(data, (int)'X') == NULL) - { - ds_ptr->ip_tos = atoi(data); - } - else - { -- if(index(data,(int)'x')) -+ if(strchr(data,(int)'x')) - { -- ds_ptr->ip_tos = (u_char) strtol((index(data, (int)'x')+1), NULL, 16); -+ ds_ptr->ip_tos = (u_char) strtol((strchr(data, (int)'x')+1), NULL, 16); - } - else - { -- ds_ptr->ip_tos = (u_char) strtol((index(data, (int)'X')+1), NULL, 16); -+ ds_ptr->ip_tos = (u_char) strtol((strchr(data, (int)'X')+1), NULL, 16); - } - } - -- cgit v1.2.3 From a2c0f0b4fb853a9cec69452a6f6324963492e863 Mon Sep 17 00:00:00 2001 From: Waldemar Brodkorb Date: Tue, 19 Jan 2010 21:02:34 +0100 Subject: fix rb532 allmodconfig --- .../patch-src_detection-plugins_sp_ip_tos_check_c | 26 ++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 package/snort/patches/patch-src_detection-plugins_sp_ip_tos_check_c (limited to 'package/snort/patches/patch-src_detection-plugins_sp_ip_tos_check_c') diff --git a/package/snort/patches/patch-src_detection-plugins_sp_ip_tos_check_c b/package/snort/patches/patch-src_detection-plugins_sp_ip_tos_check_c new file mode 100644 index 000000000..f4462c208 --- /dev/null +++ b/package/snort/patches/patch-src_detection-plugins_sp_ip_tos_check_c @@ -0,0 +1,26 @@ +--- snort-2.8.5.2.orig/src/detection-plugins/sp_ip_tos_check.c 2009-05-07 00:28:33.000000000 +0200 ++++ snort-2.8.5.2/src/detection-plugins/sp_ip_tos_check.c 2010-01-19 19:58:18.000000000 +0100 +@@ -191,19 +191,19 @@ void ParseIpTos(char *data, OptTreeNode + ds_ptr->not_flag = 1; + } + +- if(index(data, (int) 'x') == NULL && index(data, (int)'X') == NULL) ++ if(strchr(data, (int) 'x') == NULL && strchr(data, (int)'X') == NULL) + { + ds_ptr->ip_tos = atoi(data); + } + else + { +- if(index(data,(int)'x')) ++ if(strchr(data,(int)'x')) + { +- ds_ptr->ip_tos = (u_char) strtol((index(data, (int)'x')+1), NULL, 16); ++ ds_ptr->ip_tos = (u_char) strtol((strchr(data, (int)'x')+1), NULL, 16); + } + else + { +- ds_ptr->ip_tos = (u_char) strtol((index(data, (int)'X')+1), NULL, 16); ++ ds_ptr->ip_tos = (u_char) strtol((strchr(data, (int)'X')+1), NULL, 16); + } + } + -- cgit v1.2.3