summaryrefslogtreecommitdiffstats
path: root/cpukit
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@OARcorp.com>1999-01-04 16:35:31 +0000
committerJoel Sherrill <joel.sherrill@OARcorp.com>1999-01-04 16:35:31 +0000
commiteb0d7ae2dabc36809061ab62eb5cd0f787a8870c (patch)
tree654ac2a382245da5f5c68b89c3765c417d5faaee /cpukit
parentPatch from D. V. Henkel-Wallace <gumby@zembu.com> to fix braces nesting problem. (diff)
downloadrtems-eb0d7ae2dabc36809061ab62eb5cd0f787a8870c.tar.bz2
Patch from D. V. Henkel-Wallace <gumby@zembu.com> to use puts and have prototype.
Diffstat (limited to 'cpukit')
-rw-r--r--cpukit/libnetworking/netinet/in_cksum_i386.c4
-rw-r--r--cpukit/libnetworking/netinet/in_cksum_i386.h4
2 files changed, 6 insertions, 2 deletions
diff --git a/cpukit/libnetworking/netinet/in_cksum_i386.c b/cpukit/libnetworking/netinet/in_cksum_i386.c
index 2057ab3fd6..0612c5a7c4 100644
--- a/cpukit/libnetworking/netinet/in_cksum_i386.c
+++ b/cpukit/libnetworking/netinet/in_cksum_i386.c
@@ -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) */
diff --git a/cpukit/libnetworking/netinet/in_cksum_i386.h b/cpukit/libnetworking/netinet/in_cksum_i386.h
index 2057ab3fd6..0612c5a7c4 100644
--- a/cpukit/libnetworking/netinet/in_cksum_i386.h
+++ b/cpukit/libnetworking/netinet/in_cksum_i386.h
@@ -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) */