Browse Source

avoid warning when file is bigger than 4096 KiB

Waldemar Brodkorb 10 năm trước cách đây
mục cha
commit
6179af5350
2 tập tin đã thay đổi với 1 bổ sung7 xóa
  1. 1 1
      package/cfgfs/Makefile
  2. 0 6
      package/cfgfs/src/wraps.c

+ 1 - 1
package/cfgfs/Makefile

@@ -5,7 +5,7 @@ include ${TOPDIR}/rules.mk
 
 PKG_NAME:=		cfgfs
 PKG_VERSION:=		1.0.9
-PKG_RELEASE:=		4
+PKG_RELEASE:=		5
 PKG_DESCR:=		compressed config filesystem
 PKG_SECTION:=		base
 PKG_URL:=		http://openadk.org/

+ 0 - 6
package/cfgfs/src/wraps.c

@@ -77,12 +77,6 @@ fwcf_pack(char *odata, size_t i, int algo, size_t *dstsz)
 
 	/* 12 bytes header, padding to 4-byte boundary, 4 bytes trailer */
 	k = ((j + 19) / 4) * 4;
-#if DEF_FLASHPART > 0xFFFFFF
-# error DEF_FLASHPART too large
-#endif
-	if (k > DEF_FLASHPART)
-		errx(1, "%lu bytes too large for flash partition of %lu KiB",
-		    (u_long)k, DEF_FLASHPART / 1024UL);
 	/* padded to size of flash block */
 #if (DEF_FLASHBLOCK & 3)
 # error DEF_FLASHBLOCK must be dword-aligned