patch-2.1.13 linux/arch/alpha/lib/checksum.c
Next file: linux/drivers/net/ibmtr.c
Previous file: linux/arch/alpha/kernel/bios32.c
Back to the patch index
Back to the overall index
- Lines: 18
- Date:
Sat Nov 23 12:29:03 1996
- Orig file:
v2.1.12/linux/arch/alpha/lib/checksum.c
- Orig date:
Wed Jul 17 14:38:43 1996
diff -u --recursive --new-file v2.1.12/linux/arch/alpha/lib/checksum.c linux/arch/alpha/lib/checksum.c
@@ -44,7 +44,7 @@
* inner loop could be unrolled a bit further, and there are better
* ways to do the carry, but this is reasonable.
*/
-static inline unsigned long do_csum(unsigned char * buff, int len)
+static inline unsigned long do_csum(const unsigned char * buff, int len)
{
int odd, count;
unsigned long result = 0;
@@ -127,7 +127,7 @@
*
* it's best to have buff aligned on a 32-bit boundary
*/
-unsigned int csum_partial(unsigned char * buff, int len, unsigned int sum)
+unsigned int csum_partial(const unsigned char * buff, int len, unsigned int sum)
{
unsigned long result = do_csum(buff, len);
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov