mirror of
https://gitlab.rtems.org/rtems/rtos/rtems.git
synced 2026-11-09 08:37:58 +08:00
Patch from D. V. Henkel-Wallace <gumby@zembu.com> to use puts and have prototype.
This commit is contained in:
1 parent
88a0908402
commit
eb0d7ae2da
5 files changed
+15
-5
No files matched your search
@@ -9,6 +9,8 @@
|
||||
* $Id$
|
||||
*/
|
||||
|
||||
#include <stdio.h> /* for puts */
|
||||
|
||||
#undef ADDCARRY
|
||||
#define ADDCARRY(x) if ((x) > 0xffff) (x) -= 0xffff
|
||||
#define REDUCE {sum = (sum & 0xffff) + (sum >> 16); ADDCARRY(sum);}
|
||||
@@ -186,7 +188,7 @@ in_cksum(m, len)
|
||||
}
|
||||
|
||||
if (len)
|
||||
printf("cksum: out of data\n");
|
||||
puts("cksum: out of data");
|
||||
if (mlen == -1) {
|
||||
/* The last mbuf has odd # of bytes. Follow the
|
||||
standard (the odd byte is shifted left by 8 bits) */
|
||||
|
||||
@@ -9,6 +9,8 @@
|
||||
* $Id$
|
||||
*/
|
||||
|
||||
#include <stdio.h> /* for puts */
|
||||
|
||||
#undef ADDCARRY
|
||||
#define ADDCARRY(x) if ((x) > 0xffff) (x) -= 0xffff
|
||||
#define REDUCE {sum = (sum & 0xffff) + (sum >> 16); ADDCARRY(sum);}
|
||||
@@ -186,7 +188,7 @@ in_cksum(m, len)
|
||||
}
|
||||
|
||||
if (len)
|
||||
printf("cksum: out of data\n");
|
||||
puts("cksum: out of data");
|
||||
if (mlen == -1) {
|
||||
/* The last mbuf has odd # of bytes. Follow the
|
||||
standard (the odd byte is shifted left by 8 bits) */
|
||||
|
||||
@@ -9,6 +9,8 @@
|
||||
* $Id$
|
||||
*/
|
||||
|
||||
#include <stdio.h> /* for puts */
|
||||
|
||||
#undef ADDCARRY
|
||||
#define ADDCARRY(x) if ((x) > 0xffff) (x) -= 0xffff
|
||||
#define REDUCE {sum = (sum & 0xffff) + (sum >> 16); ADDCARRY(sum);}
|
||||
@@ -186,7 +188,7 @@ in_cksum(m, len)
|
||||
}
|
||||
|
||||
if (len)
|
||||
printf("cksum: out of data\n");
|
||||
puts("cksum: out of data");
|
||||
if (mlen == -1) {
|
||||
/* The last mbuf has odd # of bytes. Follow the
|
||||
standard (the odd byte is shifted left by 8 bits) */
|
||||
|
||||
@@ -9,6 +9,8 @@
|
||||
* $Id$
|
||||
*/
|
||||
|
||||
#include <stdio.h> /* for puts */
|
||||
|
||||
#undef ADDCARRY
|
||||
#define ADDCARRY(x) if ((x) > 0xffff) (x) -= 0xffff
|
||||
#define REDUCE {sum = (sum & 0xffff) + (sum >> 16); ADDCARRY(sum);}
|
||||
@@ -186,7 +188,7 @@ in_cksum(m, len)
|
||||
}
|
||||
|
||||
if (len)
|
||||
printf("cksum: out of data\n");
|
||||
puts("cksum: out of data");
|
||||
if (mlen == -1) {
|
||||
/* The last mbuf has odd # of bytes. Follow the
|
||||
standard (the odd byte is shifted left by 8 bits) */
|
||||
|
||||
@@ -9,6 +9,8 @@
|
||||
* $Id$
|
||||
*/
|
||||
|
||||
#include <stdio.h> /* for puts */
|
||||
|
||||
#undef ADDCARRY
|
||||
#define ADDCARRY(x) if ((x) > 0xffff) (x) -= 0xffff
|
||||
#define REDUCE {sum = (sum & 0xffff) + (sum >> 16); ADDCARRY(sum);}
|
||||
@@ -186,7 +188,7 @@ in_cksum(m, len)
|
||||
}
|
||||
|
||||
if (len)
|
||||
printf("cksum: out of data\n");
|
||||
puts("cksum: out of data");
|
||||
if (mlen == -1) {
|
||||
/* The last mbuf has odd # of bytes. Follow the
|
||||
standard (the odd byte is shifted left by 8 bits) */
|
||||
|
||||
Reference in new issue
Block a user