mirror of
https://github.com/novatiq/packages.git
synced 2026-04-30 07:28:39 +01:00
Add netcat package from old 14.07 package repository.
Signed-off-by: Adam Gensler openwrt@a.gnslr.us
This commit is contained in:
@@ -0,0 +1,22 @@
|
||||
Index: netcat-0.7.1/src/flagset.c
|
||||
===================================================================
|
||||
--- netcat-0.7.1.orig/src/flagset.c 2009-02-06 19:56:01.000000000 +0100
|
||||
+++ netcat-0.7.1/src/flagset.c 2009-02-06 19:56:13.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,7 +154,7 @@
|
||||
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);
|
||||
+ ret += (c >> 7);
|
||||
c <<= 1;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user