diff options
author | Waldemar Brodkorb <wbx@uclibc-ng.org> | 2014-12-27 07:51:34 +0100 |
---|---|---|
committer | Waldemar Brodkorb <wbx@uclibc-ng.org> | 2014-12-27 07:51:34 +0100 |
commit | 92d7f6522617c947d635680d045f12a4ef77bcb4 (patch) | |
tree | c20dc2f36505542fdb19a2b9d1da1b33ad92fba8 /package/ndisc/patches/patch-src_tcpspray_c | |
parent | 6a7c5ff345b197c1d5f0f845adb2bb0da9690075 (diff) |
convert checksum check to sha256
Rename the variable name to PKG_HASH and use a
256 Bit SHA checksum to verify the integrity of
distfiles. While there do some housekeeping and
remove old packages.
Diffstat (limited to 'package/ndisc/patches/patch-src_tcpspray_c')
-rw-r--r-- | package/ndisc/patches/patch-src_tcpspray_c | 48 |
1 files changed, 0 insertions, 48 deletions
diff --git a/package/ndisc/patches/patch-src_tcpspray_c b/package/ndisc/patches/patch-src_tcpspray_c deleted file mode 100644 index 9ac8bad90..000000000 --- a/package/ndisc/patches/patch-src_tcpspray_c +++ /dev/null @@ -1,48 +0,0 @@ -$Id: update-patches 24 2008-08-31 14:56:13Z wbx $ ---- ndisc6-0.9.8.orig/src/tcpspray.c 2008-05-01 14:52:28.000000000 +0200 -+++ ndisc6-0.9.8/src/tcpspray.c 2009-05-10 19:13:52.000000000 +0200 -@@ -60,7 +60,7 @@ static unsigned verbose = 0; - - static int tcpconnect (const char *host, const char *serv) - { -- struct addrinfo hints, *res; -+ struct addrinfo hints, *res, *p; - - memset (&hints, 0, sizeof (hints)); - hints.ai_family = family; -@@ -78,7 +78,7 @@ static int tcpconnect (const char *host, - - val = -1; - -- for (struct addrinfo *p = res; (p != NULL) && (val == -1); p = p->ai_next) -+ for (p = res; (p != NULL) && (val == -1); p = p->ai_next) - { - val = socket (p->ai_family, p->ai_socktype, p->ai_protocol); - if (val == -1) -@@ -127,6 +127,8 @@ static int - tcpspray (const char *host, const char *serv, unsigned long n, size_t blen, - unsigned delay_us, const char *fillname, bool echo) - { -+ unsigned int i, j; -+ - if (serv == NULL) - serv = echo ? "echo" : "discard"; - -@@ -172,7 +174,7 @@ tcpspray (const char *host, const char * - switch (child) - { - case 0: -- for (unsigned i = 0; i < n; i++) -+ for (i = 0; i < n; i++) - { - ssize_t val = recv (fd, block, blen, MSG_WAITALL); - if (val != (ssize_t)blen) -@@ -208,7 +210,7 @@ tcpspray (const char *host, const char * - struct timespec start, end; - mono_gettime (&start); - -- for (unsigned i = 0; i < n; i++) -+ for (j = 0; j < n; j++) - { - ssize_t val = write (fd, block, blen); - if (val != (ssize_t)blen) |