[package] add uboot-envtools
[openwrt-10.03/.git] / package / uboot-envtools / patches / 001-crc32_func_signature.patch
1 Index: uboot-envtools-20080520/crc32.c
2 ===================================================================
3 --- uboot-envtools-20080520.orig/crc32.c        2008-08-03 16:02:43.000000000 +0200
4 +++ uboot-envtools-20080520/crc32.c     2008-08-03 16:03:25.000000000 +0200
5 @@ -154,7 +154,7 @@
6  #define DO8(buf)  DO4(buf); DO4(buf);
7  
8  /* ========================================================================= */
9 -uint32_t ZEXPORT crc32 (uint32_t crc, const Bytef *buf, uInt len)
10 +uLong ZEXPORT crc32 (uLong crc, const Bytef *buf, uInt len)
11  {
12  #ifdef DYNAMIC_CRC_TABLE
13      if (crc_table_empty)