patch-1.3.15 linux/arch/i386/lib/checksum.c

Next file: linux/arch/i386/math-emu/errors.c
Previous file: linux/arch/i386/kernel/traps.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v1.3.14/linux/arch/i386/lib/checksum.c linux/arch/i386/lib/checksum.c
@@ -23,7 +23,7 @@
  * computes a partial checksum, e.g. for TCP/UDP fragments
  */
 
-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) {
 	  /*
 	   * Experiments with ethernet and slip connections show that buff
 	   * is aligned on either a 2-byte or 4-byte boundary.  We get at
@@ -101,7 +101,7 @@
  * copy from fs while checksumming, otherwise like csum_partial
  */
 
-unsigned int csum_partial_copy_fromuser( char *src, char *dst, 
+unsigned int csum_partial_copy_fromuser(const char *src, char *dst, 
 				  int len, int sum) {
     __asm__("
 	testl $2, %%edi		# Check alignment.
@@ -196,7 +196,7 @@
  * copy from ds while checksumming, otherwise like csum_partial
  */
 
-unsigned int csum_partial_copy( char *src, char *dst, 
+unsigned int csum_partial_copy(const char *src, char *dst, 
 				  int len, int sum) {
     __asm__("
 	testl $2, %%edi		# Check alignment.

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov with Sam's (original) version
of this