summaryrefslogtreecommitdiff
path: root/package
diff options
context:
space:
mode:
authorWaldemar Brodkorb <wbx@openadk.org>2013-07-18 14:18:42 +0200
committerWaldemar Brodkorb <wbx@openadk.org>2013-07-18 14:18:42 +0200
commit6179af5350bb1b74a7763cf22327645f18edf43e (patch)
treede40ef0ea8f49cbea64cb1c0a5f2d1911511eaca /package
parent646fff13466f38f6f99b15dc5e146b864e6448eb (diff)
avoid warning when file is bigger than 4096 KiB
Diffstat (limited to 'package')
-rw-r--r--package/cfgfs/Makefile2
-rw-r--r--package/cfgfs/src/wraps.c6
2 files changed, 1 insertions, 7 deletions
diff --git a/package/cfgfs/Makefile b/package/cfgfs/Makefile
index 3f0a72b04..ddec3c779 100644
--- a/package/cfgfs/Makefile
+++ b/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/
diff --git a/package/cfgfs/src/wraps.c b/package/cfgfs/src/wraps.c
index 650474791..7923b76be 100644
--- a/package/cfgfs/src/wraps.c
+++ b/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