[coreboot] [PATCH] change ipchksum parameter types

Peter Stuge peter at stuge.se
Fri Aug 29 23:18:35 CEST 2008


Stefan Reinauer wrote:
> change prototype. We're stuffing a binary array in here not shorts.
> 
> Signed-off-by: Stefan Reinauer <stepan at coresystems.de>
> 
> Index: libpayload/include/libpayload.h
> ===================================================================
> --- libpayload/include/libpayload.h	(revision 3488)
> +++ libpayload/include/libpayload.h	(working copy)
> @@ -154,7 +154,7 @@
>  int toupper(int c);
>  
>  /* libc/ipchecksum.c */
> -unsigned short ipchksum(const unsigned short *ptr, unsigned long nbytes);
> +unsigned short ipchksum(const void *ptr, unsigned long nbytes);

Maybe u8?

Anyway;

Acked-by: Peter Stuge <peter at stuge.se>




More information about the coreboot mailing list