summaryrefslogtreecommitdiffstats
path: root/package/netcat/netcat-0.7.1-signed-bit-counting.patch
diff options
context:
space:
mode:
authorPeter Korsgaard <peter@korsgaard.com>2015-02-03 14:52:07 +0100
committerPeter Korsgaard <peter@korsgaard.com>2015-02-03 14:52:56 +0100
commit298cd8eaa21a21eee85f9551a26ad294347b1d5a (patch)
tree249fa33b66f65e6daffdbfc8ca2e5399e8d89e61 /package/netcat/netcat-0.7.1-signed-bit-counting.patch
parentdd798a45c571063595c45278e28ed4f614f2cf32 (diff)
downloadbuildroot-298cd8eaa21a21eee85f9551a26ad294347b1d5a.tar.gz
buildroot-298cd8eaa21a21eee85f9551a26ad294347b1d5a.zip
package/*: rename patches according to the new policy
Autogenerated from rename-patch.py (http://patchwork.ozlabs.org/patch/403345) Signed-off-by: Samuel Martin <s.martin49@gmail.com> Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
Diffstat (limited to 'package/netcat/netcat-0.7.1-signed-bit-counting.patch')
-rw-r--r--package/netcat/netcat-0.7.1-signed-bit-counting.patch30
1 files changed, 0 insertions, 30 deletions
diff --git a/package/netcat/netcat-0.7.1-signed-bit-counting.patch b/package/netcat/netcat-0.7.1-signed-bit-counting.patch
deleted file mode 100644
index e29da311a9..0000000000
--- a/package/netcat/netcat-0.7.1-signed-bit-counting.patch
+++ /dev/null
@@ -1,30 +0,0 @@
-# Fix the endian-specific bit-counting code so that it works.
-# SF:1068324 "netcat_flag_count() fix"
-# http://sourceforge.net/tracker/?func=detail&aid=1205729&group_id=52204&atid=466046
-# SF:1205729 "doen't work on arm linux platform":
-# http://sourceforge.net/tracker/?func=detail&aid=1068324&group_id=52204&atid=466046
-
-Index: netcat-0.7.1/src/flagset.c
-===================================================================
---- netcat-0.7.1.orig/src/flagset.c 2010-07-19 13:51:46.000000000 +0100
-+++ netcat-0.7.1/src/flagset.c 2010-07-19 13:52:27.000000000 +0100
-@@ -134,7 +134,7 @@
-
- int netcat_flag_count(void)
- {
-- register char c;
-+ register unsigned char c;
- register int i;
- int ret = 0;
-
-@@ -154,8 +154,8 @@
- Assumed that the bit number 1 is the sign, and that we will shift the
- bit 1 (or the bit that takes its place later) until the the most right,
- WHY it has to keep the wrong sign? */
-- ret -= (c >> 7);
-- c <<= 1;
-+ ret += c&1;
-+ c>>=1;
- }
- }
-
OpenPOWER on IntegriCloud