From eb0d7ae2dabc36809061ab62eb5cd0f787a8870c Mon Sep 17 00:00:00 2001 From: Joel Sherrill Date: Mon, 4 Jan 1999 16:35:31 +0000 Subject: Patch from D. V. Henkel-Wallace to use puts and have prototype. --- cpukit/libnetworking/netinet/in_cksum_i386.c | 4 +++- cpukit/libnetworking/netinet/in_cksum_i386.h | 4 +++- 2 files changed, 6 insertions(+), 2 deletions(-) (limited to 'cpukit') 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 /* 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 /* 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) */ -- cgit v1.2.3