Patch from D. V. Henkel-Wallace <gumby@zembu.com> to use puts and have prototype.

This commit is contained in:
Joel Sherrill
1999-01-04 16:35:31 +00:00
parent 88a0908402
commit eb0d7ae2da
5 changed files with 15 additions and 5 deletions

View File

@@ -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) */

View File

@@ -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) */

View File

@@ -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) */

View File

@@ -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) */

View File

@@ -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) */