diff options
author | Joel Sherrill <joel.sherrill@OARcorp.com> | 1999-01-04 16:35:31 +0000 |
---|---|---|
committer | Joel Sherrill <joel.sherrill@OARcorp.com> | 1999-01-04 16:35:31 +0000 |
commit | eb0d7ae2dabc36809061ab62eb5cd0f787a8870c (patch) | |
tree | 654ac2a382245da5f5c68b89c3765c417d5faaee /cpukit/libnetworking/netinet/in_cksum_i386.h | |
parent | Patch from D. V. Henkel-Wallace <gumby@zembu.com> to fix braces nesting problem. (diff) | |
download | rtems-eb0d7ae2dabc36809061ab62eb5cd0f787a8870c.tar.bz2 |
Patch from D. V. Henkel-Wallace <gumby@zembu.com> to use puts and have prototype.
Diffstat (limited to '')
-rw-r--r-- | cpukit/libnetworking/netinet/in_cksum_i386.h | 4 |
1 files changed, 3 insertions, 1 deletions
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) */ |