From 4b9aefe0775d3f55aa7f7adb453aa3d5d839e0db Mon Sep 17 00:00:00 2001 From: Slawomir Lis Date: Mon, 11 Dec 2017 10:26:13 +0100 Subject: net-analyzer/ntopng: fixed wrong patch filename Package-Manager: Portage-2.3.16, Repoman-2.3.6 --- net-analyzer/ntopng/files/ntopng-3.0-pointer-cmp.patch | 12 ++++++++++++ net-analyzer/ntopng/files/pointer-cmp.patch | 12 ------------ 2 files changed, 12 insertions(+), 12 deletions(-) create mode 100644 net-analyzer/ntopng/files/ntopng-3.0-pointer-cmp.patch delete mode 100644 net-analyzer/ntopng/files/pointer-cmp.patch diff --git a/net-analyzer/ntopng/files/ntopng-3.0-pointer-cmp.patch b/net-analyzer/ntopng/files/ntopng-3.0-pointer-cmp.patch new file mode 100644 index 000000000000..11fb47ca3853 --- /dev/null +++ b/net-analyzer/ntopng/files/ntopng-3.0-pointer-cmp.patch @@ -0,0 +1,12 @@ +diff -Naur ntopng-3.0-orig/src/AddressResolution.cpp ntopng-3.0/src/AddressResolution.cpp +--- ntopng-3.0-orig/src/AddressResolution.cpp 2017-06-01 00:18:57.000000000 -0700 ++++ ntopng-3.0/src/AddressResolution.cpp 2017-11-27 23:13:50.158163187 -0800 +@@ -52,7 +52,7 @@ + u_int numeric_ip_len; + + snprintf(query, sizeof(query), "%s", _numeric_ip); +- if((at = strchr(query, '@')) != '\0') at[0] = '\0'; ++ if((at = strchr(query, '@')) != NULL) at[0] = '\0'; + numeric_ip = query; + numeric_ip_len = strlen(numeric_ip)-1; + diff --git a/net-analyzer/ntopng/files/pointer-cmp.patch b/net-analyzer/ntopng/files/pointer-cmp.patch deleted file mode 100644 index 11fb47ca3853..000000000000 --- a/net-analyzer/ntopng/files/pointer-cmp.patch +++ /dev/null @@ -1,12 +0,0 @@ -diff -Naur ntopng-3.0-orig/src/AddressResolution.cpp ntopng-3.0/src/AddressResolution.cpp ---- ntopng-3.0-orig/src/AddressResolution.cpp 2017-06-01 00:18:57.000000000 -0700 -+++ ntopng-3.0/src/AddressResolution.cpp 2017-11-27 23:13:50.158163187 -0800 -@@ -52,7 +52,7 @@ - u_int numeric_ip_len; - - snprintf(query, sizeof(query), "%s", _numeric_ip); -- if((at = strchr(query, '@')) != '\0') at[0] = '\0'; -+ if((at = strchr(query, '@')) != NULL) at[0] = '\0'; - numeric_ip = query; - numeric_ip_len = strlen(numeric_ip)-1; - -- cgit v1.2.3-65-gdbad